MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */ // Import scripts from Wikia Developers' wiki importArticles({   type: 'script',    articles: [        'u:dev:LastEdited/code.js',        'u:dev:DisplayClock/code.js',        'u:dev:AjaxRC/code.js',        'u:dev:BackToTopButton/code.js',        'u:dev:FindAndReplace/code.js',        'u:dev:Countdown/code.js',        'u:dev:Standard_Edit_Summary/code.js',        'u:dev:MessageWallUserTags/code.js',        'u:dev:Translator/code.js',        'u:dev:SpoilerAlert/code.js',        'u:dev:UserTags/code.js',        'u:dev:GlobalEditcount/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 */ // Create the "dev" namespace if it doesn't exist already: window.dev = window.dev || {}; // Create the sub-namespace for this addon and set some options: window.dev.editSummaries = { css: '#stdSummaries { ... }',    select: 'MediaWiki:StandardEditSummary' }; // The options need to be set before the import! Otherwise they may not work. $(function {   if(wgPageName === "Message_Wall:LogoDesignerGuy") {        $('.Wall').remove;    } }); /* Any JavaScript here will be loaded for all users on every page load. */ window.UserTagsJS = { modules: {}, tags: { // group: { associated tag data } queen: { u:'Queen' } } }; UserTagsJS.modules.custom = { 'Ootwar': ['queen'], // Add Queen }; /* ********** Notimodule ********** */ var notimoduleTitle = window.notimoduleTitle || 'Bulletin'; var notimodulePagename = window.notimodulePagename || 'Template:Notimodule'; var request = new XMLHttpRequest; request.open("GET", '/wiki/'+ notimodulePagename +'?action=purge', true); request.send(null); $('#WikiaRail').prepend(' '+ notimoduleTitle +'  '); if ( wgUserGroups.indexOf("sysop") >= 0 ) { $('#notimodule h2').append(' (Edit) '); } $('#notimodule > div').load('/wiki/'+ notimodulePagename +'?action=render');