Skip to content

Instantly share code, notes, and snippets.

@sawantuday
Created August 5, 2015 09:31
Show Gist options
  • Save sawantuday/b3d8a73e435403918c6a to your computer and use it in GitHub Desktop.
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.
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