MediaWiki:Common.js

AjaxRCRefreshText = 'Auto-Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity", "Special:Log", "Special:Log/upload"];

importArticles({   type: 'script',    articles: [        'u:dev:MediaWiki:AjaxRC/code.js',        'u:dev:MediaWiki:ReferencePopups/code.js',        'u:dev:MediaWiki:YoutubePlayer/code.js',        'u:dev:MediaWiki:WallGreetingButton/code.js',        "u:dev:MediaWiki:UserTags/code.js"    ] });

window.revisionTest = "Test2";

window.UserTagsJS = { modules: { mwGroups: [ "bureaucrat", "content-moderator", "sysop", "threadmoderator", "chatmoderator", "bot", "global-bot" ],       custom: { "Mamvik": ["translator"] },       userfilter: { "TechnicalIssues": ["founder"] },       metafilter: { "sysop": ["bureaucrat"] }   },    tags: { bureaucrat: { u:"Bureaucrat", link:"Category:Bureaucrats" }, sysop: { u:"Admin", link:"Category:Administrators" }, threadmoderator: { u:"Discussions Moderator", link:"Category:Discussions Moderator" }, chatmoderator: { u:"Chat Moderator", link: "Category:Chat Moderators" }, "content-moderator": { u: "Content Moderator", link: "Category:Content Moderators" }, patroller: { u: "Patroller" }, translator: { u: "Translator" }, bot: { u: "Bot" }, "global-bot": { u: "Bot" } } };

/** * Script for adding text to upload page * @author KockaAdmiralac <1405223@gmail.com> */

///////////////////////////////////////////////////////////////////////////////// //////////////////////////  CONFIGURABLE AREA      ///////////////////////////// ///////////////////////////////////////////////////////////////////////////////// /** * Text to additionally display on Upload page. * @property * @type String */ var uploadText = "Please DO NOT upload files that are used only for Talk/Forum/User pages. Link them externally instead. You can read more about it here."; ///////////////////////////////////////////////////////////////////////////////// //////////////////////  NON-CONFIGURABLE AREA      ///////////////////////////// ///////////////////////////////////////////////////////////////////////////////// $(function {   mw.util.addCSS(".uploadWarning{color:red;font-weight:bold;font-style:italic;font-size:14px;font-family:Courier New;}");    var xhr = new XMLHttpRequest;    xhr.onreadystatechange = function     {        if(xhr.readyState === 4 && xhr.status === 200)         {            var text = blocked ? blockedText : uploadText;            if(mw.config.get("wgCanonicalSpecialPageName") === "Upload") {                var element = $("#uploadtext");                element.html(element.html + " " + text + " ");            }            else if(wgTransactionContext.action === "edit") {                WikiaEditor.load("WikiaMiniUpload").done(function { var _kockaRandomAliasWMUindicator7F9n3Mhr7F = WMU_indicator; WMU_indicator = function(arg1, arg2) { _kockaRandomAliasWMUindicator7F9n3Mhr7F.call(this, arg1, arg2); if(arg1 === 1 && !arg2) { var element = $("#ImageUploadMain"); if(element.html) element.html(element.html + " " + text + " "); }                   };                });            }        }    };    // Small snippet for Template:Username    if(wgUserName) $(".insertusername").html(wgUserName);    if($('.page-User_Quadstar').length > 0) $('.masthead-info hgroup').append(" Content Moderator ");

// When people tell me to open RP boards -_- if(wgCanonicalSpecialPageName === "Forum")$('.boards').append(" Roleplaying Boards Place for RPing. This board in located on Undertale RP wiki "); // Move Community messages and Insights before Live! Chat in the Wiki Activity page $(".CommunityCornerModule").insertBefore($('.ChatModule')); $(".insights-module").insertBefore($('.ChatModule')); window.revisionTest = $(".CommunityCornerModule"); });