Created
November 28, 2022 09:30
-
-
Save iamdanre/591388b4042ab87c3fe8ce7eb62fc967 to your computer and use it in GitHub Desktop.
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
var odmcss = ` | |
:root { | |
filter: invert(90%) hue-rotate(180deg) brightness(100%) contrast(100%); | |
background: #fff; | |
} | |
iframe, img, image, video, [style*="background-image"] { | |
filter: invert() hue-rotate(180deg) brightness(105%) contrast(105%); | |
} | |
`; | |
id="orion-browser-dark-theme"; | |
ee = document.getElementById(id); | |
if (null != ee) ee.parentNode.removeChild(ee); | |
else { | |
style = document.createElement('style'); | |
style.type = "text/css"; | |
style.id = id; | |
if (style.styleSheet) style.styleSheet.cssText = odmcss; | |
else style.appendChild(document.createTextNode(odmcss)); | |
document.head.appendChild(style); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment