MediaWiki:Vector.js: Difference between revisions

From Galaxypedia
imported>Smallketchup82
No edit summary
imported>Smallketchup82
No edit summary
Line 4: Line 4:
mw.loader.load( '/index.php?title=MediaWiki:Dark.css&action=raw&ctype=text/css', 'text/css' );
mw.loader.load( '/index.php?title=MediaWiki:Dark.css&action=raw&ctype=text/css', 'text/css' );
setTimeout(function() {
setTimeout(function() {
mw.loader.load( '/index.php?title=MediaWiki:DarkReader.js&action=raw&ctype=text/javascript' );
mw.loader.load( 'https://unpkg.com/darkreader@4.9.43/darkreader.js' );
}, 100)
}, 100)

Revision as of 16:32, 13 December 2021

/* All JavaScript here will be loaded for users of the Vector skin */

// Load embedded dark reader
mw.loader.load( '/index.php?title=MediaWiki:Dark.css&action=raw&ctype=text/css', 'text/css' );
setTimeout(function() {
	mw.loader.load( 'https://unpkg.com/darkreader@4.9.43/darkreader.js' );
}, 100)