Last active
January 23, 2023 14:35
-
-
Save Glaived/de5a8fe0fb8bd205f7e5041fe37c8124 to your computer and use it in GitHub Desktop.
Replaces the download links to bypass copyright protection.
This file contains 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 Download Workaround | |
// @namespace emuparadise.me | |
// @version 1.0.1 | |
// @description Replaces the download links to bypass copyright protection. | |
// @description:fr Remplace les liens de téléchargement pour contourner les protection des droits d’auteur. | |
// @icon64 data:image/x-icon;base64,AAABAAEAEBAAAAAAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAAAAD///8B////Af///wH///8BLjZDTzJeb6lAbX/LQm+A2UFvgNtAbn7PO2V0sTxaZ2P///8B////Af///wH///8B////Af///wH///8BRZekTVeKov9utM//eMPi/3jE4/94xOP/d8Lh/3C41f9dmbL/Q32Qbf///wH///8B////Af///wH///8B////AWCQrbtyutf/crjW/0ZxhP+E1ff/h9n8/0h0h/9vs8//e8np/1KQpt0tMz0F////Af///wH///8BQ0RdHwgLN7FFcY39db3W/3Cz0P9CYHD/g9X2/4bZ+/9DYnP/a6jE/3zK5/9IeY//DQ01wxERODH///8BFxZnIRkbad0FB1//Ex5b/zxkgf9Xi53/ZYuW/2Skuf9kpbv/YIeT/1aHmP9AbIP/FyZV/wUIUv8NDmLvDQw9NxMUipcIFof/DROK/woNfv8IC27/FCFt/x41cP8mQG7/JkBs/x40aP8UI17/CAta/wcJaf8LEHn/ChR8/xAWe7MMh7jVBWS4/xERsP8QGLH/EBet/w4Po/8MB5r/CguS/woMjf8LB4r/DAqL/w0Skf8OFJP/Dg2T/wdFmv8Gf6jhBsvS7wxRzf8UEsj/ExvK/xMXyf8NN9D/Ck7S/xAawv8RErz/CzbA/wo9vP8RFa7/EBer/xASqf8ML6//BbC+7QzO498MTNv/FRXX/xQd2f8VFNX/Clvl/wPg8P8Fruj/Bp3j/wPS5f8Ggdr/ExHE/xIawf8TFr7/DivB/wi30+cZuuqxB3Tp/xYT3P8VHt7/FhLb/wxM6/8E6vn/Be/1/wXt8v8E7fH/CWrm/xUO0f8THND/FBPK/wpP0f8NveDLN1XbWRQu4v8VHN7/Fhve/xEv5/8Frfv/BfP9/wXt+/8F6/r/BfD6/wW8+f8PNeX/FRnZ/xQb1f8RJdb/KkvQg0I+4wkiJtvTFBzf/xUZ4f8GkPv/A////wX6//8F8f//Be/+/wX3//8D////Bab7/xQZ4P8UHNz/HCLa7zs45Bv///8BExvpPxYg4v8VHeH/EjDo/w1S7v8Gmfr/BPT//wX4//8Frv3/C2Lx/xA96f8VHeH/Fh/f/xIZ61////8B////Af///wELENt1FiDj/xYb4f8XEuD/Exvl/wS9/v8D1P//ESfp/xcQ3/8WGeH/FyDj/w4U15P///8B////Af///wH///8B////AQsR5VUVH+PjFh/j/xYY4f8OQO3/DUju/xYY4f8WH+L/Fh7i7Q0W4Wn///8B////Af///wH///8B////Af///wH///8BBQfQFw4W420UHuOzFhji1RYY4tkUH+O7DxvpfQcI3B////8B////Af///wH///8BAAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//wAA//8AAP//AAD//w== | |
// @website https://gist.github.com/Glaived/de5a8fe0fb8bd205f7e5041fe37c8124 | |
// @supportURL https://gist.github.com/Glaived/de5a8fe0fb8bd205f7e5041fe37c8124 | |
// @updateURL https://gist.githubusercontent.com/raw/de5a8fe0fb8bd205f7e5041fe37c8124/emuparadise-workaround.user.js | |
// @downloadURL https://gist.githubusercontent.com/raw/de5a8fe0fb8bd205f7e5041fe37c8124/emuparadise-workaround.user.js | |
// @author Glaived | |
// @match *://*.emuparadise.me/* | |
// @grant none | |
// ==/UserScript== | |
;(() => { | |
'use strict' | |
document.addEventListener('DOMContentLoaded', () => { | |
console.info('EmuParadise Download Workaround: loaded') | |
document.querySelectorAll('.download-link a').forEach(el => { | |
let id = el.href.match(/(\d+)-download$/) | |
if (id !== null) el.href = '/roms/get-download.php?test=true&gid=' + id | |
}) | |
}) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment