Created
August 5, 2015 09:31
-
-
Save sawantuday/b3d8a73e435403918c6a to your computer and use it in GitHub Desktop.
Few JS lines to hide adds displayed on page. Simply copy this code and paste it in Chrome or Firefox console. You can create simple Chrome plugin to execute this code each time page loads.
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 script1 = $x('//script[contains(@src, "google")]'); | |
var script2 = $x('//iframe') | |
var scripts = script1.concat(script2); | |
for(i in scripts){ | |
console.log(scripts[i].parentNode.setAttribute('style', 'display:none')) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment