Dark Mode script used in Orion Browser. Less than 1kb of code, works (mostly) decent on most sites.
Run the script on a page to toggle dark mode or make it a bookmarklet.
- Right-click your bookmark bar and click "Add Page..."
- Make the "name" whatever your want (e.g. Dark Mode)
- In the URL section, insert the following code:
javascript:(function(){let a='\n:root{filter:invert(90%) hue-rotate(180deg) brightness(100%) contrast(100%);\n background:#fff;}\niframe,img,image,video,[style*="background-image"]{filter:invert() hue-rotate(180deg) brightness(105%) contrast(105%);}';id="obdt",ee=document.getElementById(id),null!=ee?ee.parentNode.removeChild(ee):(s=document.createElement("style"),s.type="text/css",s.id=id,s.styleSheet?s.styleSheet.cssText=a:s.appendChild(document.createTextNode(a)),document.head.appendChild(s));})()
- Profit$