MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. See w:c:dev:AjaxRC for info & attribution */

/* Installed scripts See MediaWiki:ImportJS */

window.ajaxPages = [ "Special:RecentChanges", "Special:WikiActivity", "Special:UncategorizedPages", "Special:AllPages" ];

/* Auto-Refresh feature */ AjaxRCRefreshText = 'Auto-Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the Activity page.';

/* Replaces with the name of the user browsing the page. Requires copying Template:USERNAME. */ $(function {   if (window.disableUsernameReplace || mw.config.get('wgUserName') === null) return;    $('span.insertusername').html(mw.config.get('wgUserName')); }); /* End of the replacement */

/* Clock */ window.DisplayClockJS = '%X %x [%{Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday}w] (UTC)';

/* Last edit header */ window.lastEdited = { avatar: true, size: true, diff: true, comment: true, time: 'timeago', namespaces: { include: [], exclude: [] },   pages: [] };

SpoilerAlert = { pages: ["Spoiler"], };