// ==UserScript== // @name pathfinder.w3schools.com - Dark Mode // @namespace typpi.online // @version 1.0.1 // @description Dark mode for W3Schools PathFinder since most Styles dont support it // @author Nick2bad4u // @homepageURL https://github.com/Nick2bad4u/UserStyles // @license UnLicense // @grant GM_addStyle // @run-at document-start // @match *://*.pathfinder.w3schools.com/* // @downloadURL none // ==/UserScript== (function() { let css = ` /* Invert colors except images and videos */ html, img, svg, video, iframe { filter: invert(1) hue-rotate(180deg) !important; } `; if (typeof GM_addStyle !== "undefined") { GM_addStyle(css); } else { const styleNode = document.createElement("style"); styleNode.appendChild(document.createTextNode(css)); (document.querySelector("head") || document.documentElement).appendChild(styleNode); } })();