Forked from requinix/wired-without-the-adblock-veil.userscript.js
Last active
September 11, 2016 14:03
-
-
Save jpts/df1dc937fa32b46e968753dfc751519d 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/jpts | |
// @version 1.0 | |
// @author requinix | |
// @author jpts | |
// @match *://www.wired.com/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
window.jQuery(function() { | |
window.console.log("Wired adblock veil blocked"); | |
window.jQuery("[data-js^='veil']").remove(); | |
window.jQuery("[data-js='post']").removeAttr("data-js"); | |
var i = window.setInterval(function() { | |
if (/no-scroll/.test(document.body.className)) { | |
window.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