Created
April 7, 2016 10:14
-
-
Save einstein95/4a3ea28fa8018c02983e629514ab019a to your computer and use it in GitHub Desktop.
Decrapify CoolROM.com
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 Decrapify CoolROM.com | |
// @description Replaces the malware extension-needing links with the actual download link | |
// @include http://coolrom.com/roms/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// Main code taken from http://stackoverflow.com/a/29722028 | |
var anchors = document.querySelectorAll('a.btn-partner-test') | |
for(var i=0;i<anchors.length;i++){ | |
anchors[i].href = tr_download_url; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment