MediaWiki:Common.js

/* Auto updating recent changes opt-in * See w:c:dev:AjaxRC for info & attribution */ AjaxRCRefreshText = 'Auto-Refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = ["Special:RecentChanges","Special:WikiActivity","Special:UncategorizedPages","Special:AllPages"]; importScriptPage('AjaxRC/code.js', 'dev');

/** * 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 {   if(mw.config.get("wgCanonicalSpecialPageName") === "Upload")    {        var element = $("#uploadtext");        element.html(element.html + uploadText);    }    else if(WikiaPhotoGallery)    {        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 + uploadText); }           }        });    } });