From 78d6e3a71118848cc84b5911005ff8726d0c5fe1 Mon Sep 17 00:00:00 2001 From: 8ga Date: Mon, 20 Jan 2025 11:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E5=85=B4=E5=B2=A9?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E7=99=BB=E5=BD=95.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 兴岩自动化登录.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 兴岩自动化登录.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