MediaWiki:Common.js

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

/* Namespace Stripping Fix by Ague 20 April 2012 $('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:", ""); });

/* IRC Login name changer. wgUserName if registered or Leroy_Jenky# otherwise. BY: Technical_13 27 March 2013 if (wgPageName == "DDO_wiki:IRC" && wgUserName != "null"){ alert("Replacing Leroy_Jenky. with " + wgUsername.replace(" ", "_")); $('a#StartChatting').href("http://qchat1.rizon.net/?nick=" + wgUsername.replace(" ", "_") + "&channels=DDOwiki&prompt=1&uio=d4"); }