Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jpts/df1dc937fa32b46e968753dfc751519d to your computer and use it in GitHub Desktop.
Save jpts/df1dc937fa32b46e968753dfc751519d to your computer and use it in GitHub Desktop.
UserScript: Wired with the adblock veil
// ==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