Last active
March 30, 2016 15:42
-
-
Save ouroborus/f35c443a14c0ebebed52cc93af845c1a to your computer and use it in GitHub Desktop.
Greasemonkey script to block Wired's ad block blocking.
This file contains hidden or 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 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