Skip to content

Instantly share code, notes, and snippets.

@LamPPKK
Forked from DungGramer/CSS - Edit Content
Created February 12, 2021 10:12
Show Gist options
  • Save LamPPKK/17b757204b37f31ac1a8e73c44e451a7 to your computer and use it in GitHub Desktop.
Save LamPPKK/17b757204b37f31ac1a8e73c44e451a7 to your computer and use it in GitHub Desktop.
Debug CSS using Bookmarklet
javascript:if(!("is_debugging"in window)){is_debugging=!1;var debug_el=document.createElement("style");debug_el.append(document.createTextNode("*:not(g):not(path){background:#000!important;color:white!important;outline:solid #ff6865 thin!important;background-color:#333e4233!important;box-shadow:none!important;filter:none!important}* *:not(g):not(path){background-color:#4a484133!important}* *:not(g):not(path){background-color:#0d886333!important}* * *:not(g):not(path){background-color:#22a6b333!important}* * * *:not(g):not(path){background-color:#745a8033!important}* * * * *:not(g):not(path){background-color:#2b759833!important}* * * * * *:not(g):not(path){background-color:#46802e33!important}* * * * * * *:not(g):not(path){background-color:#6b316a33!important}* * * * * * * *:not(g):not(path){background-color:#36a78f33!important}* * * * * * * * *:not(g):not(path){background-color:#44507733!important}"))}function enable_debugger(){is_debugging||(document.head.appendChild(debug_el),is_debugging=!0)}function disable_debugger(){is_debugging&&(document.head.removeChild(debug_el),is_debugging=!1)}is_debugging?disable_debugger():enable_debugger();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment