console.log("login start") console.log(window.location.hostname, window.location.pathname); if(window.location.hostname === "signup.zhipin.com") { console.log("登录操作", document.getElementsByClassName("link-signin")); document.getElementsByClassName("link-signin")[1].click(); // https://www.zhipin.com/web/geek/recommend } else if ( window.location.pathname == "web/geek/recommend" ) { }