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.1" //Helps to see if this thing loads.    var localScripts = [];    if (wgNamespaceNumber === 828) {        localScripts.push("u:duolingo:MediaWiki:Luapreviewer.js");    }    else {        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);        }    } });