标签:nts pup doc get func code key clu win
// ==UserScript==
// @name 4399login
// @include http://my.4399.com*
// @version 1
// @grant none
// ==/UserScript==
window.onload = function() {
var loginform = document.getElementsByClassName(‘my_unlogin‘)[0].firstChild;
if (loginform) {
loginform.click();
}
};
window.setTimeout(function(){
var frame = document.getElementById(‘popup_login_frame‘).contentDocument;
if (frame){
frame.getElementById(‘password‘).value = "111111";
var loginBtn = frame.getElementsByClassName(‘ptlogin_btn‘)[0];
loginBtn.click();
}
},5000);
标签:nts pup doc get func code key clu win
原文地址:http://blog.51cto.com/whbill/2333541