Skip to content

Instantly share code, notes, and snippets.

@beardypig
Forked from Eptun/emuparadise.eptun.user.js
Last active March 17, 2021 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save beardypig/8abeeec164f0eeec9d9cd4ea7a8f1f0d to your computer and use it in GitHub Desktop.
Save beardypig/8abeeec164f0eeec9d9cd4ea7a8f1f0d to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name EmuParadise Downloader - 1.2.0
// @version 1.2.0
// @description Replaces the download button link with a working one
// @author beardypig (based on emuparadise.eptun.user.js)
// @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 a").each(function() { this.href = "/roms/get-download.php?gid="+id+"&test=true" });
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment