MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

/*umm something*/ var $j = jQuery; //Touch this, and I will kill you.

/** Show username ******************************************************** * The annoying hack used by Template:USERNAME! * Inserts user name into * Originally by Splarka, User:Spang * New version by User:Bizzeebeever */ $( function {	var name = mw.config.get( 'wgUserName' );	if ( !window.disableUsernameReplace && name ) {		$( 'span.insertusername' ).text( name );	} } );

/** Archive edit tab disabling ******************************************* * Disables the edit tab on old forums to stop noobs from bumping them. * Page can still be edited by going via the edit tab on the history etc, * or by typing the edit address manually. * By Spang, rewritten by User:Bizzeebeever */ $j( function {	if ( $j( '#old-forum-warning' ).length && !window.enableOldForumEdit ) {		$j( '#ca-edit a' ).removeAttr( 'href' )			.css( 'color', 'gray' )			.text( 'No editing' );	} } );