Difference between revisions of "MediaWiki:Common.js"

From Tycoon Gaming
m
m (added darkreader?)
Line 4: Line 4:
 
mw.loader.load( '/wiki/index.php?title=MediaWiki:MainMenu.js&action=raw&ctype=text/javascript');
 
mw.loader.load( '/wiki/index.php?title=MediaWiki:MainMenu.js&action=raw&ctype=text/javascript');
 
mw.loader.load( '/wiki/index.php?title=MediaWiki:PageSpecific.js&action=raw&ctype=text/javascript');
 
mw.loader.load( '/wiki/index.php?title=MediaWiki:PageSpecific.js&action=raw&ctype=text/javascript');
 +
mw.loader.load( 'https://unpkg.com/[email protected]/darkreader.js');
 +
 +
  
  

Revision as of 15:28, 29 December 2023

mw.loader.load( '/wiki/index.php?title=Mediawiki:Middleclick.js&action=raw&ctype=text/javascript');
mw.loader.load( '/wiki/index.php?title=MediaWiki:LastPage.js&action=raw&ctype=text/javascript');
mw.loader.load( '/wiki/index.php?title=MediaWiki:MoveTOC.js&action=raw&ctype=text/javascript');
mw.loader.load( '/wiki/index.php?title=MediaWiki:MainMenu.js&action=raw&ctype=text/javascript');
mw.loader.load( '/wiki/index.php?title=MediaWiki:PageSpecific.js&action=raw&ctype=text/javascript');
mw.loader.load( 'https://unpkg.com/[email protected]/darkreader.js');





$( document ).ready(function() {
	if ( window.location !== window.parent.location ) { 
		const elem = document.getElementById('p-personal-container');
		elem.style.display = 'none';
	}
});