油猴自动登录路由器页面

// ==UserScript==
// @name         ap_loginin
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       zzk
// @match        http://*/login.html
// @grant        none
// @require      https://code.jquery.com/jquery-2.1.4.min.js
// ==/UserScript==

(function() {
// 使用 GM_xmlhttpRequest 的其他代码
    //alert('hellow world!');
    $("#username").eq(0).val("admin");
    $("#password").eq(0).val("admin");
    $("#save").eq(0).click();
})();

猜你喜欢

转载自blog.csdn.net/u012335044/article/details/79806465