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.6a" //Helps to see if this thing loads.    var localScripts = [];     // --Temporary    //  localScripts.push('u:dev:User:Saftzie/Sandbox');    //     // localScripts.push('w:dev:DupImageList/code.js');    if (wgNamespaceNumber === 828) {        localScripts.push("u:duolingo:MediaWiki:Luapreviewer.js");    }    else {        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("Global wikia scripts loaded. Version " + version);        } catch(err){            console.log("Error scripts not loaded :" + err.message);        }    } });