User:Jdm280/global.js

importArticles({ type: 'script', articles: [       'u:dev:User:Jdm280/BackToTopButton.js',        'u:dev:AjaxPatrol/code.js'    ] });

var spa = { namespaceNum: mw.config.get('wgNamespaceNumber'), namespace: mw.config.get('wgCanonicalNamespace'), pagename: mw.config.get('wgTitle'), server: mw.config.get('wgServer'), language: mw.config.get('wgUserLanguage'), username: mw.config.get('wgUserName') };

console.log('Server: ' + spa.server + ' Namespace: ' + spa.namespace + '(' + spa.namespaceNum + ') Pagename: ' + spa.pagename + ' Username: ' + spa.username);