Greasy Fork镜像 支持简体中文。

大连东软校园网自动连接2

校园网自动连接脚本

  1. // ==UserScript==
  2. // @name 大连东软校园网自动连接2
  3. // @description 校园网自动连接脚本
  4. // @author BuKe, Class 19005, Department of Software Engineering, DNUI
  5. // @email 66482504@qq.com
  6. // @namespace http://tampermonkey.net/
  7. // @version 0.0.2
  8. // @require https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js
  9. // @match https://aaa.neusoft.edu.cn/
  10. // @grant window.close
  11. // ==/UserScript==
  12. $(function() {
  13. 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 &&
  14. document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > button') == null) {
  15. location.reload();
  16. }
  17. 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) {
  18. document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > button').click();
  19. }else{
  20. 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;
  21. document.querySelector('#root > div > section:nth-child(3) > div > div:nth-child(2) > div > div.card-body > form > button').click();
  22. } }, 500);
  23. setTimeout(function() {window.close();},1000);
  24. })

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址