User:Ultimate Dark Carnage/global.js

cacheSkip = []; cacheSkipLimit = 1000;

importScriptPage('User:Monchoman45/ChatHacks.js', 'c'); importScriptPage('MessageBlocker/code.js', 'dev');

importArticles({   type: 'script',    articles: [        'u:dev:NullEditButton/code.js',        'u:dev:AntiUnicruft/code.js',        'u:dev:BackToTopButton/code.js',        'u:dev:PortableCSSPad/code.js',        'u:dev:WHAM/code.js',        'u:dev:QuickModTools/loader.js',        'u:dev:CacheCheck/code.js',        'u:dev:MassNullEdit/code.js'    ] });

function WikiaUI(name){ this.title = name; this.type = null; this.element = $('[data-UItitle="' + name + '"]'); this.loaded = false; }

WikiaUI.prototype.bind = function(event, callback){ if (event){ var elem = this.element; this.element.on(event, callback); }   return this; };

WikiaUI.prototype.setType = WikiaUI.prototype.changeType = function(newType){ if (!this.type || this.type === null){ this.type = newType; } else { var oldType = this.type; oldType = newType; }   return this; };

WikiaUI.prototype.load = function(isLoaded){ var type = this.type, name = this.title, element = this.element; if (this.loaded === false){ this.loaded = true; if (typeof isLoaded == 'function'){ isLoaded.apply(this, [{ type: type, title: name, element: element }]); }   }    return this; };

WikiaUI.prototype.create = function(config){ var t = this.type || config.type, html; switch (type){ case 'createbox': html = ' '; } };