MediaWiki:Common.js

/* --- Any JavaScript here will be loaded for all users on every page load. --- */ /*                                                                                                     */ /**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//* importScript( 'MediaWiki:Gadget-Edittools.js' );
 * IMPORT SECTION

/**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//* $('a[title^="Item:"]').each(function {   this.innerHTML = this.innerHTML.replace("Item:", "");    this.title = this.title.replace("Item:", ""); }); $('h1#title').each(function {   this.innerHTML = this.innerHTML.replace("Item:", ""); }); $('title').each(function {   this.innerHTML = this.innerHTML.replace("Item:", ""); })
 * Namespace Stripping
 * Fix by Ague
 * 20 April 2012

/**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//**//* * IRC Login name changer. wgUserName if registered or Leroy_Jenky# otherwise. * BY: Technical_13 * 27 March 2013 */ var StartChatting = $('span#StartChatting a').text; if (StartChatting == "Start chatting!" && wgUserName != "null"){ var wgUserNamee = wgUserName.replace(' ', '_'); var hrefCurrent= $('span#StartChatting a').attr('href'); var hrefReplaced = hrefCurrent.replace('Leroy_Jenky.', wgUserNamee); $('span#StartChatting a').attr('href', hrefReplaced); }