ALL POSTSBlankPageSandbox
<p>I tested the JS code on my console but it said "undefined". Can you please fix the code?
</p><p>MediaWiki:BlankPageSandbox/code.js
</p>
(Edited by Winter7073)
<p>When loaded, the script doesn't log anything in the console nor does it do any action that would return data. Thus, the console identifies that the script has loaded properly without errors by responding undefined as it doesn't know what else to say.
</p>
(Edited by Curiouscrab)
Does the script work at least?
(Edited by Winter7073)
<p>Mostly. You can't just check Project:Sandbox due to the different structures of wikis. Also, I would change the conditional for the second statement to check if wgPageName is whatever and wgAction is edit.
</p>
(Edited by Curiouscrab)
<p>I'm not so good in JS than you -- could you do it for me, please?
</p>
(Edited by Winter7073)
Done. Now admins just define the variable for it to work.
(Edited by Curiouscrab)