您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
校园网自动连接脚本
// ==UserScript== // @name 大连东软校园网自动连接2 // @description 校园网自动连接脚本 // @author BuKe, Class 19005, Department of Software Engineering, DNUI // @email [email protected] // @namespace http://tampermonkey.net/ // @version 0.0.2 // @require https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js // @match https://aaa.neusoft.edu.cn/ // @grant window.close // ==/UserScript== $(function() { setTimeout(function(){ while(document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > div:nth-child(2) > div:nth-child(1) > label')==null && document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > button') == null) { location.reload(); } if(document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > div:nth-child(2) > div:nth-child(1) > label')==null) { document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > button').click(); }else{ document.getElementById(document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > div:nth-child(2) > div:nth-child(1) > label').attributes["for"].value).checked=true; document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > button').click(); } }, 500); setTimeout(function() {window.close();},1000); })