Skip to content

Instantly share code, notes, and snippets.

@iamdanre
Created November 28, 2022 09:30
Show Gist options
  • Save iamdanre/591388b4042ab87c3fe8ce7eb62fc967 to your computer and use it in GitHub Desktop.
Save iamdanre/591388b4042ab87c3fe8ce7eb62fc967 to your computer and use it in GitHub Desktop.
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