Created
April 25, 2018 17:46
-
-
Save cuschk/315ed7b4a9aea012bcede4cf89475d97 to your computer and use it in GitHub Desktop.
Remove all scripts from a web page
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
document.querySelectorAll('script').forEach(el => { el.parentNode.removeChild(el); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment