fucking NJFU WIFI

fucking NJFU WIFI!!

当前为 2020-11-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name fucking NJFU WIFI
  3. // @namespace https://zkwzkw.top
  4. // @version 0.2
  5. // @description fucking NJFU WIFI!!
  6. // @author kaiwen zhou
  7. // @include http://*/a70.htm
  8. // @grant none
  9. // @require https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. // 请在下面下面两行中输入你的wifi账号和密码
  15. let username = ''
  16. let password = ''
  17. if (username === '' || password === ''){
  18. alert('你还没输入账号和密码!!快去脚本中添加!!')
  19. }else{
  20. let url = window.location.href
  21. let reg_a70 = /a70.htm$/;
  22. if(reg_a70.test(url)){
  23. $('.edit_lobo_cell')[1].value = username
  24. $('.edit_lobo_cell')[2].value = password
  25. $('.edit_lobo_cell')[0].click()
  26. }
  27. }
  28. })();