Last active
April 21, 2018 19:35
-
-
Save alexsasharegan/891cc17baa15e43d478f2b75c0d1199c to your computer and use it in GitHub Desktop.
This file contains 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
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"]); |
This file contains 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
// 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