Skip to content

Commit cf256cb

Browse files
committed
bookmarklets: remove all js scripts
1 parent cd57b96 commit cf256cb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

blog/gists/javascript/bookmarklets.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,16 @@ javascript: (()=>{
182182
})();
183183
```
184184
185+
### remove all scripts
186+
187+
note: this does not stop scripts from running, it just cleans out html.
188+
189+
```js
190+
javascript: (()=>{
191+
[...document.querySelectorAll('script')].forEach( script => script.remove());
192+
})();
193+
```
194+
185195
### toggle inject CSS
186196
187197
```js

0 commit comments

Comments
 (0)