var username login var password pass window addEventListener load func

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
var username = "login";
var password = "pass";
window.addEventListener("load",function() {
document.getElementById("login").select()
document.getElementById("login").value = username
document.getElementById("password").select()
document.getElementById("password").value = password
document.getElementsByTagName("form")[0].submit();
},true)