User:Dessamator/global.js

// importScriptPage('User:Dessamator/js/MassCategorization/code.js', 'dev'); /* Any JavaScript here will be loaded for all users on every page load. */ // Load scripts on demand $(function {    'use strict';    var version = "1.0.7b" //Helps to see if this thing loads.    var localScripts = [];     // --Temporary    //  localScripts.push('u:dev:User:Saftzie/Sandbox');    //     // localScripts.push('w:dev:DupImageList/code.js');    localScripts.push("u:duolingo:User:Dessamator/js/masscategory.js")    if (wgNamespaceNumber === 828) {        localScripts.push("u:duolingo:MediaWiki:Luapreviewer.js");    }    if (localScripts.length == 0){        console.log("Global Wikia scripts, nothing loaded. Ver" + version);        return ;    }    var bLoad = (localScripts.length > 0);    if (bLoad) {        try{            importArticles({ type: "script", articles: localScripts });           console.log(localScripts.length +" Global wikia scripts loaded. Version " + version);        } catch(err){            console.log("Error scripts not loaded :" + err.message);        }    } });