Created
June 8, 2012 07:14
-
-
Save anthonyringoet/2894148 to your computer and use it in GitHub Desktop.
bookmarklet: remove bullshit ads from vrt websites
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
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