User:ArcaneOverride/vector-2022.js

/*mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-dark-mode.css&action=raw&ctype=text/css', 'text/css' ); mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-dark-mode-toggle-pagestyles.css&action=raw&ctype=text/css', 'text/css');

//mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Volker_E._(WMF)/dark-mode.js&action=raw&ctype=text/javascript', 'text/javascript' ); mw.loader.load( 'https://en.wikipedia.org/w/load.php?modules=ext.gadget.dark-mode-toggle&only=scripts', 'text/javascript' ); mw.loader.load( 'https://en.wikipedia.org/w/load.php?modules=ext.gadget.dark-mode-toggle', 'text/javascript' ); mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-dark-mode-toggle.js&action=raw&ctype=text/javascript', 'text/javascript' );

if (window.matchMedia('(prefers-color-scheme: dark)').matches) { dark; } window.wpDarkModeAutoToggle = true;