Skip to content

Instantly share code, notes, and snippets.

@justadityaraj
Last active August 1, 2022 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justadityaraj/1c135e07cad90dc60147d69cafec256a to your computer and use it in GitHub Desktop.
Save justadityaraj/1c135e07cad90dc60147d69cafec256a to your computer and use it in GitHub Desktop.
Create a bookmark and paste this code as a URL to toggle the CSS on/off.
javascript:!function(){for(var c=document.body.getElementsByTagName("*"),b=[],a=0;a<c.length;a++)-1!=c[a].innerHTML.indexOf("* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }")&&b.push(c[a]);if(b.length>0)for(var a=0;a<b.length;a++)b[a].innerHTML="";else document.body.innerHTML+="<style>* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; } * * { background-color: rgba(0,255,0,.2) !important; } * * * { background-color: rgba(0,0,255,.2) !important; } * * * * { background-color: rgba(255,0,255,.2) !important; } * * * * * { background-color: rgba(0,255,255,.2) !important; } * * * * * * { background-color: rgba(255,255,0,.2) !important; } * * * * * * * { background-color: rgba(255,0,0,.2) !important; } * * * * * * * * { background-color: rgba(0,255,0,.2) !important; } * * * * * * * * * { background-color: rgba(0,0,255,.2) !important; }</style>"}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment