Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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