Created
March 14, 2016 08:47
-
-
Save requinix/c700ebb9b94128db4d88 to your computer and use it in GitHub Desktop.
UserScript: Wired with the adblock veil
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 Wired without the adblock veil | |
// @namespace http://gist.github.com/requinix | |
// @version 0.9 | |
// @author requinix | |
// @match http://www.wired.com/* | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
jQuery(function() { | |
console.log("'Wired without the adblock veil' loaded"); | |
jQuery("[data-js^='veil']").remove(); | |
jQuery("[data-js='post']").removeAttr("data-js"); | |
var i = window.setInterval(function() { | |
if (/no-scroll/.test(document.body.className)) { | |
jQuery(document.body).removeClass("no-scroll"); | |
window.clearInterval(i); | |
} | |
}, 500); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment