commit 78d6e3a71118848cc84b5911005ff8726d0c5fe1 Author: 8ga Date: Mon Jan 20 11:10:54 2025 +0800 添加 兴岩自动化登录.js diff --git a/兴岩自动化登录.js b/兴岩自动化登录.js new file mode 100644 index 0000000..279f197 --- /dev/null +++ b/兴岩自动化登录.js @@ -0,0 +1,20 @@ +// ==UserScript== +// @name 兴岩自动登录脚本 +// @version 1.0 +// @author 8ga +// @match http://a32h099468.wicp.vip:39132/login +// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net +// @grant none +// ==/UserScript== + +(function() { +// 'use strict'; + let username = document.querySelector("input[name='username']"); + if(username !== null && username !== undefined) { + username.value = 'S21150143'; + } + let pwd = document.querySelector("input[name='password']"); + if(pwd !== null && pwd !== undefined) { + pwd.value = '123456'; + } +})(); \ No newline at end of file