Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save requinix/c700ebb9b94128db4d88 to your computer and use it in GitHub Desktop.
Save requinix/c700ebb9b94128db4d88 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/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