我正在编写一个脚本,login页面加载后login到我的大学networking。 代码如下所示 // ==UserScript== // @name My Fancy New Userscript // @namespace http://use.iEyour.homepage/ // @version 0.1 // @description enter something useful // @match <College login page> // @copyright 2012+, You // ==/UserScript== $(document).ready(function() { var usr=document.getElementsByName("username"); var pass = document.getElementByName("password"); usr.value="usrname"; pass.value="password"; var submitButton = document.querySelector ('input[type="submit"][value="Login"]'); var clickEvent = document.createEvent ('MouseEvents'); clickEvent.initEvent ('click', true, […]