Skip to content

Instantly share code, notes, and snippets.

@rocknard
rocknard / ep.tampermonkey.js
Last active June 1, 2020 04:27
[Tampermonkey] EP links' fix.
// ==UserScript==
// @name emuparadise.me
// @match https://www.emuparadise.me/*/*/*
// ==/UserScript==
var _el = document.querySelectorAll('.download-link a[href*="-download"]'), _url = document.URL.split('/');
if(_url[3] == 'Sega_Dreamcast_ISOs') {
for(var _i = 0; _i < _el.length; _i++) {
_el[_i].href = 'http://50.7.189.186/happyxhJ1ACmlTrxJQpol71nBc/Dreamcast/' + _el[_i].title.split('Download ').pop().split(' ISO for Sega Dreamcast')[0];
}