Skip to content

Instantly share code, notes, and snippets.

@ouroborus
Last active March 30, 2016 15:42
Show Gist options
  • Save ouroborus/f35c443a14c0ebebed52cc93af845c1a to your computer and use it in GitHub Desktop.
Save ouroborus/f35c443a14c0ebebed52cc93af845c1a to your computer and use it in GitHub Desktop.
Greasemonkey script to block Wired's ad block blocking.
// ==UserScript==
// @name anti-blockAdBlock
// @include http://www.wired.com/*
// @include https://www.wired.com/*
// @grant none
// ==/UserScript==
window.addEventListener('load', function(event){
var $ = jQuery,
$target = $('section.post-container');
$target.each(function(index,element){
var $target = $(element),
$new = $('<section></section>');
$new.attr('class',$target.attr('class'));
$new.html($target.html());
$('.fader',$new).removeClass('fader');
$target.before($new).remove();
});
$('#veil').remove();
$('body')[0].style.setProperty('overflow','visible','important');
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment