MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ $j( function {	var name = mw.config.get( 'wgUserName' );	if ( !window.disableUsernameReplace && name ) {		$j( 'span.insertusername' ).text( name );	} } ); $(function {	var myElement = document.getElementById('mw-mywiki-example');	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!'); });