Skip to content

Instantly share code, notes, and snippets.

@alexsasharegan
Last active April 21, 2018 19:35
Show Gist options
  • Save alexsasharegan/891cc17baa15e43d478f2b75c0d1199c to your computer and use it in GitHub Desktop.
Save alexsasharegan/891cc17baa15e43d478f2b75c0d1199c to your computer and use it in GitHub Desktop.
javascript:!function(a,b){for(const c of b)a.querySelectorAll(c).forEach(d=>{d.parentElement&&d.parentElement.removeChild(d)})}(document,["iframe","video","ins","#carbonads"]);
// minify: https://babeljs.io/repl/#?babili=true&browsers=&build=&builtIns=false
javascript: !(function(doc, selectors) {
for (const sel of selectors) {
doc.querySelectorAll(sel).forEach(el => {
if (el.parentElement) {
el.parentElement.removeChild(el);
}
});
}
})(document, ["iframe", "video", "ins", "#carbonads"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment