Skip to content

Instantly share code, notes, and snippets.

@dubcl
Forked from Eptun/emuparadise.eptun.user.js
Created November 17, 2018 02:31
Show Gist options
  • Save dubcl/3bac27f9efe2d0ef689116d22d4acf19 to your computer and use it in GitHub Desktop.
Save dubcl/3bac27f9efe2d0ef689116d22d4acf19 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