MediaWiki:Common.js

AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity","Special:NewFiles","Forum:Character_Form","Template:Admin blog"]; importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('AjaxRC/code.js', 'dev'); importScriptPage('ShowHide/code.js', 'dev'); importScriptPage('Countdown/code.js', 'dev'); importScriptPage('DisplayClock/code.js', 'dev'); importScriptPage('PurgeButton/code.js', 'dev'); importScriptPage('Standard_Edit_Summary/code.js', 'dev'); importScriptPage('InactiveUsers/code.js', 'dev'); InactiveUsers = { months: 1 }

/* 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 */