Skip to content

Instantly share code, notes, and snippets.

@lucaslealdev
Forked from Eptun/emuparadisev2.eptun.user.js
Last active March 25, 2019 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucaslealdev/f1cfe2e7467ed2cdd12a91eff5f1c786 to your computer and use it in GitHub Desktop.
Save lucaslealdev/f1cfe2e7467ed2cdd12a91eff5f1c786 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name EmuParadise download script
// @version 1
// @description Downloads games directly after clicking their name
// @author Eptun
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @match https://www.emuparadise.me/*/*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$(".gamelist").each(function(i) {
var id = $(this).attr('href').split("/")[3];
id = id.replace('-download','');
$(this).attr('href', "/roms/get-download.php?gid="+id+"&test=true");
});
$(".download-link a").each(function(i) {
var id = $(this).attr('href').split("/")[3];
id = id.replace('-download','');
$(this).attr('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