Last active
January 22, 2018 17:35
-
-
Save briankung/e2ab355d9b01123d2697689d38538c61 to your computer and use it in GitHub Desktop.
Firefox bookmarklet for toggling element deletion on click - copy into Firefox bookmark to fuck shit up
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
javascript:void( | |
( | |
(document.fuckShitUp === undefined) | |
&& | |
(document.addEventListener('click', (e) => { | |
if (document.fuckShitUp) { e.preventDefault(), e.target.remove() } | |
})) | |
), ( | |
document.fuckShitUp = !document.fuckShitUp | |
) | |
) |
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.fuckShitUp===void 0&&document.addEventListener('click',a=>{document.fuckShitUp&&(a.preventDefault(),a.target.remove())}),document.fuckShitUp=!document.fuckShitUp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment