It doesn\'t give an error, and I put a console.log(\'loaded userscript wifi-autologin\'), the console.log works, but the intended effect of the doc
console.log(\'loaded userscript wifi-autologin\')
console.log
Apparently, document.addEventListener() is unreliable, and hence, my error. Use window.addEventListener() with the same parameters, instead.
document.addEventListener()
window.addEventListener()