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! - LifeWiki 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. ') }

if(window.location.href.match('https://life.miraheze.org/wiki/Special:EliminateFromExistence')) { document.write(' I SWEAR TO GOD THERE\'S NO CABAL! - LifeWiki Eliminate an anti-cabalist from existence This form will allow you to permanently eliminate a user from existence if they oppose the Cabal. Please click the button below to open the interface. Please note that "eliminating someone from existence" does not actually mean anything, and is just a term that we cabalists use for fun. Eliminate function myFunction{var x;var person=prompt("Who would you like to eliminate from existence?","Celeste");if (person!=null)  {if (window.confirm(\'Click OK to confirm\'))  {  window.open(\'https://life.miraheze.org/w/index.php?action=submit&preload=Template%3AEliminated&preloadtitle=&section=new&title=UserWiki:\' + person + \'&create=The+button%21\')  }  }} ') } if(window.location.href.match('https://life.miraheze.org/wiki/Command_line')) { document.write('\ Command line - LifeWiki \ \ body {background-color:black}\ .blink { animation: blink 1s steps(5, start) infinite; -webkit-animation: blink 1s steps(5, start) infinite; } @keyframes blink { to { visibility: hidden; } } @-webkit-keyframes blink {to { visibility: hidden; } } }}\ \ \ Welcome to LifeOS® version 7.0, the only operating system that you can run this program on!\ Enter "help" for more details. \ > Submit \ \ function loadHelp{   var userInput = document.getElementById("userInput").value;    if (userInput === "help") {    	document.getElementById("demo").innerHTML = "Commands: logout: Log out of the server purge: Refresh the cache of the server dir: See all of the files on your computer del (filename): Permanently delete a file help: See this menu again Type \'-hide\' to at the end of this command to show the hidden commands. Type any of these commands in the above box once again." } else if (userInput === "logout") { window.location.href = "https://life.miraheze.org\/wiki\/Special:UserLogout"} else if (userInput === "purge") { location.reload } else if (userInput === "dir") { document.getElementById("demo").innerHTML = "Files in directory \'only_directory_that_exists:\' CON.TXT - 7MB BANLIST.TXT - 25MB ADGEN.EXE - 75MB NUL.TXT - 0MB VERY_IMPORTANT_SYSTEM_FILE.JS - 300MB"} else if (userInput.includes("del")) { document.write("Named file does not exist; deleting VERY_IMPORTANT_SYSTEM_FILE.JS instead... The file has been deleted. And your system has permanently crashed. Good luck.")} else if (userInput === "crash") { document.write(\' body {background-color:black} Fortunately, your system has crashed! This means that you are no longer able to use it. Thank god. Exit code: -1 STOP code: USER_WANTED_CRASH\') } else if (userInput === "help -hide") { document.getElementById("demo").innerHTML = "Hidden commands: crash: Permanently crash the server hack: Pretend to hack something and look so cool. punish: Punish someone for doing literally anything"} else if (userInput === "hack") { document.getElementById("demo").innerHTML = "The system has decided to hack: The Pentagon. You then realize that that won\'t work, and promptly give up. Ironically, the system does not actually know anything else to hack, so it\'s all futile"} else if (userInput === "punish") { document.getElementById("demo").innerHTML = "The system has decided to punish Celeste. Is she not who you wanted to punish? Well too :badeline:!"}} '); } if(window.location.href.match('https://life.miraheze.org/wiki/What_you_saw_for_a_few_minutes_when_reading_this_website')) {	document.write('  502 Bad Gateway    502 Bad Gateway  nginx   ') } if(window.location.href.match('https://life.miraheze.org/wiki/Command_Line')) {	document.write('\ Command Line - Uncyclopedia, the content-free encyclopedia \ \ body {background-color:black}\ .blink { animation: blink 1s steps(5, start) infinite; -webkit-animation: blink 1s steps(5, start) infinite; } @keyframes blink { to { visibility: hidden; } } @-webkit-keyframes blink {to { visibility: hidden; } } }}\ \ \ Loading... \ Booting BDSM drive... failed. \ Launching cruise missile... failed. \ Accessing pornography... failed. \ Selling war bonds... failed. \ Hiring assassin... failed. \ Learning Russian... failed. \ Bootstrapping RAM... - failed. \ Downloading more RAM... failed. \ Booting in command line mode... SUCCEEDED! \ Welcome to Uncyclux® version 7.0</a>, because the Uncyclomedia Foundation was so bored that they decided to become a for-profit software development company.\ Enter "help" for more details. \ > <input name="hi" id="userInput" /><button onclick="loadHelp">Submit \ \ <img src="https://images.uncyclomedia.co/uncyclopedia/en/9/94/Uncyclux.gif" /> \ function loadHelp{   var userInput = document.getElementById("userInput").value;    if (userInput === "help") {    	document.getElementById("demo").innerHTML = "Commands: logout: Log out of the server purge: Refresh the cache of the server dir: See all of the files on your computer del (filename): Permanently delete a file help: See this menu again Type \'-hide\' to at the end of this command to show the hidden commands. Type any of these commands in the above box once again." } else if (userInput === "logout") { window.location.href = "https://en.uncyclopedia.co\/wiki\/Special:UserLogout"} else if (userInput === "purge") { location.reload } else if (userInput === "dir") { document.getElementById("demo").innerHTML = "Files in directory \'only_directory_that_exists:\' CON.TXT - 7MB BANLIST.TXT - 25MB ADGEN.EXE - 75MB NUL.TXT - 0MB VERY_IMPORTANT_SYSTEM_FILE.JS - 300MB"} else if (userInput.includes("del")) { document.write("Named file does not exist; deleting VERY_IMPORTANT_SYSTEM_FILE.JS instead... The file has been deleted. And your system has permanently crashed. Good luck.")} else if (userInput === "crash") { document.write(\' body {background-color:black} Fortunately, your system has crashed! This means that you are no longer able to use it. Thank god. Exit code: -1 STOP code: USER_WANTED_CRASH\') } else if (userInput === "help -hide") { document.getElementById("demo").innerHTML = "Hidden commands: crash: Permanently crash the server hack: Pretend to hack something and look so cool. punish: Punish someone for doing literally anything"} else if (userInput === "hack") { document.getElementById("demo").innerHTML = "The system has decided to hack: The Pentagon. You then realize that that won\'t work, and promptly give up. Ironically, the system does not actually know anything else to hack, so it\'s all futile."} else if (userInput === "punish") { document.getElementById("demo").innerHTML = "The system has decided to punish Kev. Are they not who you wanted to punish? Well too :badeline:!"}} '); }	$j( function {	if ( $j( '#script' ).length ) {		$j( '#script' ).html(' ');		alert($("#script").text);	} } );