Created
June 22, 2021 13:11
-
-
Save teidesu/f188a8cfd85b244566408c9565472b7d to your computer and use it in GitHub Desktop.
base for toggleable css injection bookmarklet
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() { | |
var ID = '__INJECTED__STYLE__' | |
var CSS = '.foo {}' | |
var w=window,el;if(w[ID]){w[ID].remove();delete w[ID];return};el=document.createElement('style');el.innerHTML=CSS;w[ID]=el;document.head.appendChild(el) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment