// ==UserScript== // @name Dark Theme Stackoverflow // @description Apply stackoverflow dark theme without login // @version 0.2 // @run-at document-start // @match https://*.stackoverflow.com/* // @icon https://stackoverflow.com/favicon.ico // @author Fznhq // @namespace https://github.com/fznhq // @homepageURL https://github.com/fznhq/userscript-collection // @license GNU GPLv3 // @downloadURL https://update.greasyfork.icu/scripts/480700/Dark%20Theme%20Stackoverflow.user.js // @updateURL https://update.greasyfork.icu/scripts/480700/Dark%20Theme%20Stackoverflow.meta.js // ==/UserScript== (function () { "use strict"; new MutationObserver((_, observer) => { if (document.body) { document.body.classList.add("theme-dark"); observer.disconnect(); } }).observe(document.documentElement, { subtree: true, childList: true }); })();