User:Novem Linguae/Scripts/VariableTest.js

/* Add the below to common.js, then look at your DevTools console to run the test.

var test1 = 'Getting value from common.js configuration variable'; importScript('User:Novem Linguae/Scripts/VariableTest.js'); // Backlink: User:Novem Linguae/Scripts/VariableTest.js



try { if ( test1 === undefined ) { var test1 = 'Getting value from user script'; // default value } } catch(e) { }

console.log('Test: ' + test1);