User:Anemicne/global.js

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

ajaxPages = ["Special:WikiActivity","Special:RecentChanges","Special:Log"]; ajaxRefresh = 20000; /* 20 seconds */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page';

window.UserTagsJS = { modules: {}, tags: { // group: { associated tag data } communityrep: { u:'Community Rep' }, custodian: { u:'Custodian' }, chatmoderator: { u:'Chat Moderator' }, } }; UserTagsJS.modules.custom = { //'username': ['communityrep'] // NOTE: order of list here does NOT matter }; UserTagsJS.modules.mwGroups = ['bureaucrat', 'sysop', 'rollback', 'custodian', 'chatmoderator', 'bot-global']; UserTagsJS.modules.inactive = 30; // 30 days

// ***************************** // Beginning of Script importing // ***************************** importArticles({   type: "script",    articles: [        'w:c:dev:UserTags/code.js',        'w:c:dev:ExternalImageLoader/code.js',        'w:c:dev:AjaxRC/code.js',        'w:c:dev:Sine/code.js',        'w:c:dev:AjaxBatchDelete/code.js',        'u:dev:SexyUserPage/code.js',        'u:dev:ListFiles/code.js',    ] });

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