Skip to content

Instantly share code, notes, and snippets.

@sehyunchung
Last active June 30, 2020 07:03
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 sehyunchung/ac18cfc9901a41699b7b78248e7bd1f2 to your computer and use it in GitHub Desktop.
Save sehyunchung/ac18cfc9901a41699b7b78248e7bd1f2 to your computer and use it in GitHub Desktop.
blueprint bookmarklet based on zaydek.github.com/debug.css
javascript: /* debug.css | MIT License | zaydek.github.com/debug.css */ if (!("is_debugging"in window)) { is_debugging = false; var debug_el = document.createElement("style"); debug_el.append(document.createTextNode(`*:not(path):not(g) { color: hsla(210, 100%, 100%, 0.7) !important; background: hsla(211, 80%, 28%, 0.5) !important; outline: solid 1px hsla(210, 100%, 100%, 0.5) !important; box-shadow: none !important; filter: none !important; }`)); } function enable_debugger() { if (!is_debugging) { document.head.appendChild(debug_el); is_debugging = true; } } function disable_debugger() { if (is_debugging) { document.head.removeChild(debug_el); is_debugging = false; } } !is_debugging ? enable_debugger() : disable_debugger();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment