MediaWiki:Vector.js: Difference between revisions
imported>Smallketchup82 No edit summary |
imported>Smallketchup82 (Undo revision 7811 by Smallketchup82 (talk) - having it hosted on the galaxypedia is more reliable) |
||
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( ' | mw.loader.load( '/index.php?title=MediaWiki:DarkReader.js&action=raw&ctype=text/javascript' ); | ||
}, 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( '/index.php?title=MediaWiki:DarkReader.js&action=raw&ctype=text/javascript' ); }, 100)