Skip to content

Instantly share code, notes, and snippets.

@einstein95
Created April 7, 2016 10:14
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 einstein95/4a3ea28fa8018c02983e629514ab019a to your computer and use it in GitHub Desktop.
Save einstein95/4a3ea28fa8018c02983e629514ab019a to your computer and use it in GitHub Desktop.
Decrapify CoolROM.com
// ==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