Skip to content

Instantly share code, notes, and snippets.

@einstein95
einstein95 / decrapifycoolrom.user.js
Created April 7, 2016 10:14
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++){