Scriptbar Snippets 🚀
Handy and easy to understand snippets to keep in your browser


Turn any website into dark mode by adding this css 1liner

This css 1 liner will turn any website in dark mode. Inverting colors completely via 1 will make that light-themed website much more comfortable on your eyes

turn any website into darkmode demo

(function turnWebSiteIntoDarkMode(document) { function insertCss(code) { var style = document.createElement("style"); style.innerHTML = code; document.getElementsByTagName("head")[0].appendChild(style); } insertCss(`html { filter: invert(1) hue-rotate(180deg); }`); })(document);
Built with ❤️ by @domnguyen and everyone on the internet 🚀