MediaWiki:Common.js/Mods.js

/* Any JavaScript here will be loaded for all users on every page load. */ /* Replaces with the name of the user browsing the page. Requires copying Template:USERNAME. */

function UserNameReplace { if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return; $("span.insertusername").html(wgUserName); } addOnloadHook(UserNameReplace);

/* End of the replacement */

/* AJAX */ importScriptPage('MediaWiki:AjaxRC/code.js', 'legouniverse'); ajaxPages = ["Special:RecentChanges","Special:WikiActivity","Special:NewPages","LEGO_Universe_Wiki:Mod_Tools/Recent_Changes"];

/* displayTimer */ importScriptPage('MediaWiki:Common.js/displayTimer.js', 'legocritics');

/* MOS */ $('ul.tools li:first-child').after('Please view the Manual of Style'); importScriptPage('MediaWiki:Common.js/MOS.js', 'legocritics');

/* PlusOne */ $('ul.commentslikes li:first-child').after(' ');

/* EditorTemplates */ importScriptPage('MediaWiki:Common.js/Mods.js/ET.js', 'legocritics');