Skip to content

Instantly share code, notes, and snippets.

@rafaelrabelos
Forked from Eptun/emuparadise.eptun.user.js
Created November 20, 2020 20:18
Show Gist options
  • Save rafaelrabelos/d1275fd83f6ea62b43f07437aa2320d2 to your computer and use it in GitHub Desktop.
Save rafaelrabelos/d1275fd83f6ea62b43f07437aa2320d2 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name EmuParadise Download Workaround - 1.1.1
// @version 1.1.2
// @description Replaces the download button link with a working one
// @author Eptun
// @match https://www.emuparadise.me/*/*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant none
// ==/UserScript==
(function() {
'use strict';
var id = ((document.URL).split("/"))[5];
$(".download-link").prepend(`<a target="_blank" href="/roms/get-download.php?gid=`+id+`&test=true" title="Download using the workaround script">Download using the workaround script</a><br><br>`);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment