Difference between revisions of "MediaWiki:Common.js"

From Tycoon Gaming
m (removed unused stuff)
m
Line 1: Line 1:
 
mw.loader.load( '/wiki/index.php?title=Mediawiki:Middleclick.js&action=raw&ctype=text/javascript');
 
mw.loader.load( '/wiki/index.php?title=Mediawiki:Middleclick.js&action=raw&ctype=text/javascript');
 +
 +
 +
$( document ).ready(function() {
 +
if ( window.location !== window.parent.location ) {
 +
const elem = document.getElementById('p-personal-container');
 +
elem.style.display = 'none';
 +
}
 +
});

Revision as of 05:42, 14 February 2023

mw.loader.load( '/wiki/index.php?title=Mediawiki:Middleclick.js&action=raw&ctype=text/javascript');


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