User:Silicon Soldier/global.js

PurgeButtonText = 'Purge'; importArticles({   type: 'script',    articles: [        'u:dev:PurgeButton/code.js',        'u:dev:CacheCheck/code.js',        'u:dev:MediaWiki:FileUsageAuto-update/code.js',        'u:dev:PageRenameAuto-update/code.js',        'u:dev:CatNav/code.js'    ] });

//Enable strict mode "use strict";

if (mw.config.get('wgCanonicalSpecialPageName') === 'Upload' && !mw.config.get('wpForReUpload')) { //Testing objects... var o1 = new headerObject; o1.header = "Test Header"; var o2 = new textObject; o2.name = "Test Name"; o1.addContent(o2.getHTML); $('#mw-htmlform-description').replaceWith(o1.getHTML); }

function headerObject { var header = null; var content = null;

this.empty = function { this.header; this.content; };

this.addContent = function (content) { this.content += content; }

this.getHTML = function { return "" + this.header + " " + this.content; } }

function textObject { var name = null; this.getHTML = function { return " "; } }