Skip to content

Instantly share code, notes, and snippets.

@lweiss01
lweiss01 / darkmodeswitcher.js
Last active March 18, 2022 03:26
a dark mode toggle switch
javascript:(d=>{var css=`:root{background-color:#f1f1f1;filter:invert(1) hue-rotate(180deg)}img:not([src*=".svg"]),picture,video{filter: invert(1) hue-rotate(180deg)}`,style,id="dark-mode",ee=d.getElementById(id);if(null!=ee)ee.parentNode.removeChild(ee);else {style = d.createElement('style');style.type="text/css";style.id=id;if(style.styleSheet)style.styleSheet.cssText=css;else style.appendChild(d.createTextNode(css));(d.head||d.querySelector('head')).appendChild(style)}})(document)
cd01083e075607686f4c747e6b7c35213ffd2ed21a37ac80f4695197988793e9fe1175b909f704ff5a979716b4fe555f6f3348118a103016ee620df25c485ff0
@lweiss01
lweiss01 / keybase.md
Created October 4, 2015 01:20
keybase.io proof

Keybase proof

I hereby claim:

  • I am lweiss01 on github.
  • I am lweiss (https://keybase.io/lweiss) on keybase.
  • I have a public key whose fingerprint is BF14 3ECD 1752 3390 B21A 7C4A DF21 3C54 8C05 5C0C

To claim this, I am signing this object: