MediaWiki:Common.js

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

/* Auto Refresh */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity"]; importArticles({   type: 'script',    articles: [        "u:dev:AjaxRC/code.js", /* Auto Refresh */        "u:dev:WallGreetingButton/code.js", /* Wall Greeting Button */        "u:dev:BackToTopButton/code.js", /* Add Back To Top Button */        "u:dev:ShowHide/code.js", /* Show/Hide */        "w:c:dev:ReferencePopups/code.js",        "MediaWiki:Common.js/displayTimer.js",        "MediaWiki:Common.js/Toggler.js"    ] });

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