Skip to content

Instantly share code, notes, and snippets.

@ni-co
ni-co / keybase.md
Last active November 25, 2017 13:55

Keybase proof

I hereby claim:

  • I am ni-co on github.
  • I am nicofuchs (https://keybase.io/nicofuchs) on keybase.
  • I have a public key ASD8XF2pvoWVA3lsvJlwYw8je2d21j_4Ovr38XtZuqseJAo

To claim this, I am signing this object:

@ni-co
ni-co / bookmark.min.js
Created February 9, 2021 09:12 — forked from zaydek-old/bookmark.min.js
A *simple* CSS debugger. To use, bookmark "Debug CSS" at https://zaydek.github.io/debug.css. Learn more here https://medium.freecodecamp.org/88529aa5a6a3 and https://youtu.be/2QdzahteCCs?t=1m25s (starts at 1:25)
/* 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(g):not(path) { color: hsla(210, 100%, 100%, 0.9) !important; background: hsla(210, 100%, 50%, 0.5) !important; outline: solid 0.25rem 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();