MediaWiki:Common.js

//DO NOT EDIT THIS PAGE WITHOUT AT LEAST A BASIC UNDERSTANDING OF JAVASCRIPT! $j( function {	var name = mw.config.get( 'wgUserName' );	if ( !window.disableUsernameReplace && name ) {		$j( 'span.insertusername' ).text( name );	} } ); //enables CSS2 JS message var cont = mw.config.get([	'wgServer',	'wgPageName',	'wgCanonicalSpecialPageName',	'wgUserLanguage' ]); if (cont.wgPageName === 'CSS/2') { $(function {		var myElement = document.getElementById('mw-mywiki');		alert('I have ruined this page using JavaScript');		alert('I actually had to add this JavaScript to the site-wide JavaScript page, so, if you\'re reading this over there, uh... hi?');		alert('Are you Suffusion of Yellow by any chance?');		alert('If not, please tell them I said hi.');		alert('Hopefully then we\'ll be able to have a new member of our abuse filter manager user group!'); }); } var cont2 = mw.config.get([	'wgServer',	'wgPageName',	'wgCanonicalSpecialPageName',	'wgUserLanguage' ]); if (cont2.wgPageName === 'CSS') { $(function {		var myElement2 = document.getElementById('mw-mywiki-example');		if (window.confirm('If you want a version that doesn\'t spin like this, try pressing "OK"'))			{			window.open('http://life.miraheze.org/wiki/CSS/normal', '_blank');			}

}); } if(window.location.href.match('https://life.miraheze.org/wiki/Special:CabalInterface')) {	document.write(' There is no cabal! Hidden cabal interface Welcome to the special cabal interface! There is currently nothing here, and there probably never will be anything here, for there is no cabal. Unless you are a member of it, in which case there is one. Make sure to know how to eliminate anti-cabalists from existence using the linked tool. ') }