Created
November 6, 2019 00:43
-
-
Save kuzminero/5c386f0588d9baa8993e6f0c6861a6f5 to your computer and use it in GitHub Desktop.
emuparadise_dc_fix2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name emuparadise_dc_fix2 | |
// @version 1.0 | |
// @description Workaround for downloading Dreamcast roms from Emuparadise.me | |
// @author ichkommepostal | |
// @match https://www.emuparadise.me/Sega_Dreamcast_ISOs/*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
document.querySelectorAll('.download-link a').forEach(el => { | |
var id = el.getAttribute('href').match(/(\d+)-download$/); | |
if (id !== null) { | |
el.setAttribute('href', 'https://www.emuparadise.me/roms/get-download.php?gid=' + id[1] + '&test=true'); | |
} else { | |
var filename = el.getAttribute('title').replace(/(?:^Download\s|\sISO\sfor\sSega\sDreamcast$)/g, ''); | |
el.setAttribute('href', 'http://162.210.194.49/happyxhJ1ACmlTrxJQpol71nBc/Dreamcast/' + encodeURI(filename)); | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you please help me. It's 4-30-22 and I just copied / pasted and in tampermonkey added / pasted your script. Also, infval's v123 script is in there but your script doesn't work with Dreamcast either (cdi or gdi) neither clicking the the download buttons or rtclk-ing and using 'save link as'. What happens is, after a long wait a winblows 10 file browser comes up and you see the zip but when you try to save it, it times out and says forbidden. Sometimes you can say resume and then "Keep" yadayadah but still it gives an error and time out. I'm using chrome latest update. I've tried several different Dreamcast roms. BTW, I can download other platform roms. Any ideas?