Skip to content

Instantly share code, notes, and snippets.

@anthonyringoet
Created June 8, 2012 07:14
Show Gist options
  • Save anthonyringoet/2894148 to your computer and use it in GitHub Desktop.
Save anthonyringoet/2894148 to your computer and use it in GitHub Desktop.
bookmarklet: remove bullshit ads from vrt websites
var vrtAds = (function ( document, undefined) {
var results = document.querySelectorAll('#leaderboard, #skyscraper, .block-canvas_doormat_advertising, #adh_textlink_wrapper');
for (var i = 0; i < results.length; i++) {
//console.log(results[i].style.display);
results[i].style.display = 'none';
}
}(document));
// paste the following in a bookmarklet
// javascript:var%20vrtAds%20=%20(function%20(%20document,%20undefined)%20{var%20results%20=%20document.querySelectorAll(%27#leaderboard,%20#skyscraper,%20.block-canvas_doormat_advertising,%20#adh_textlink_wrapper%27);for%20(var%20i%20=%200;%20i%20<%20results.length;%20i++)%20{console.log(results[i].style.display);results[i].style.display%20=%20%27none%27;}}(document));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment