Created
October 31, 2021 02:58
-
-
Save hkitago/ef7aa6876254500cc27623c92a30fa2d to your computer and use it in GitHub Desktop.
Bookmarklet to call Dark Mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(()=>%7BcssText='@media(prefers-color-scheme:dark){body{filter:invert(1) hue-rotate(180deg);background-color:#000}img{filter:invert(1) hue-rotate(180deg)}}';textNode=document.createTextNode(cssText);styleNode=document.createElement('style');styleNode.appendChild(textNode);document.getElementsByTagName('head')[0].appendChild(styleNode)%7D)() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment