harbor的登录界面,chrome不会自动填入密码, “记住我”功能也是假的,只能用脚本实现自动登录了
使用
.dispatchEvent(new Event('input', {bubbles: true}))
实现
(function() {
'use strict';
setTimeout(function(){
document.getElementById("login_username").value='xxxxxx';
document.getElementById("login_password").value='xxxx';
document.getElementById("log_in").removeAttribute("disabled")
document.getElementById("login_username").dispatchEvent(new Event('input', {bubbles: true}))
document.getElementById("login_password").dispatchEvent(new Event('input', {bubbles: true}))
document.getElementById("log_in").click();
}, 500)
// Your code here...
})();