您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
【使用前先看介绍/有问题可反馈】【欢迎一键三连(好评+打赏+收藏),你的支持是作者维护下去的最大动力!】深圳大学内部网自动脚本(SZU Auto):内部网首页左上角增加 宿舍用电查询/校园网络续费/登录(不可用)Dr.com/体育场馆预订/百度文库/下载专区/师资队伍 入口;免去进入 Blackboard 的繁琐步骤;自动登录(不可用) Blackboard/办事大厅/Dr.com/校园网络续费 等页面;自动填写需要登陆内部网账号的网页的账号密码;成长记录页面增加每学期专业排名。
当前为
// ==UserScript== // @name SZU Auto // @name:en SZU Auto // @namespace http://tampermonkey.net/ // @version 0.8.2 // @description 【使用前先看介绍/有问题可反馈】【欢迎一键三连(好评+打赏+收藏),你的支持是作者维护下去的最大动力!】深圳大学内部网自动脚本(SZU Auto):内部网首页左上角增加 宿舍用电查询/校园网络续费/登录(不可用)Dr.com/体育场馆预订/百度文库/下载专区/师资队伍 入口;免去进入 Blackboard 的繁琐步骤;自动登录(不可用) Blackboard/办事大厅/Dr.com/校园网络续费 等页面;自动填写需要登陆内部网账号的网页的账号密码;成长记录页面增加每学期专业排名。 // @description:en 【使用前先看介绍/有问题可反馈】【欢迎一键三连(好评+打赏+收藏),你的支持是作者维护下去的最大动力!】深圳大学内部网自动脚本(SZU Auto):内部网首页左上角增加 宿舍用电查询/校园网络续费/登录(不可用)Dr.com/体育场馆预订/百度文库/下载专区/师资队伍 入口;免去进入 Blackboard 的繁琐步骤;自动登录(不可用) Blackboard/办事大厅/Dr.com/校园网络续费 等页面;自动填写需要登陆内部网账号的网页的账号密码;成长记录页面增加每学期专业排名。 // @author cc // @match https://elearning.szu.edu.cn/* // @match https://authserver.szu.edu.cn/* // @match https://drcom.szu.edu.cn/* // @match https://self.szu.edu.cn/* // @match https://www1.szu.edu.cn/* // @match http://ehall.szu.edu.cn/* // @match http://bkxk.szu.edu.cn/* // @match 172.30.255.2/* // @grant GM_setValue // @grant GM_getValue // ==/UserScript== (function() { 'use strict'; // 在此修改您的账号密码 var CARD_ID = 'Your card id'; var STUDENT_ID = 'Your student id'; var PASSWORD = 'Your password'; // 往后的代码不需要修改 const RECURSION_DURATION = 250; var extra_times = 0; var account = GM_getValue('account'); if (account) { if (CARD_ID != 'Your card id' && STUDENT_ID != 'Your student id' && PASSWORD != 'Your password' && (CARD_ID != account.CARD_ID || STUDENT_ID != account.STUDENT_ID || PASSWORD != account.PASSWORD)) { GM_setValue('account', { 'CARD_ID': CARD_ID, 'STUDENT_ID': STUDENT_ID, 'PASSWORD': PASSWORD, }); account = GM_getValue('account'); }; } else { if (CARD_ID == 'Your card id' || STUDENT_ID == 'Your student id' || PASSWORD == 'Your password') { alert('【来自SZU Auto】:\n请前往脚本编辑页更新您的账号密码并保存\n进入脚本编辑页方式请查看脚本介绍页的使用说明\n这是为了往后脚本更新时不需要您再手动修改内容\n若不更新则脚本不会启用\n更新完毕后该弹窗不再出现\n以后若需要重新更新账号密码请前往脚本编辑页编辑保存'); return ; } else { GM_setValue('account', { 'CARD_ID': CARD_ID, 'STUDENT_ID': STUDENT_ID, 'PASSWORD': PASSWORD, }); account = GM_getValue('account'); }; }; CARD_ID = account.CARD_ID; STUDENT_ID = account.STUDENT_ID; PASSWORD = account.PASSWORD; (function recursion () { if (location.host == 'elearning.szu.edu.cn') { if (location.href == 'https://elearning.szu.edu.cn/' || location.href == 'https://elearning.szu.edu.cn/webapps/login/') { let span = document.querySelector('table table table tr td a span'); if (span) { span.click(); }; } else if (location.href.includes('webapps/portal/')) { let button_1 = document.querySelector('.button-1'); if (button_1) { button_1.click(); }; }; } else if (location.host == 'authserver.szu.edu.cn') { let username = document.getElementById('username'); let password = document.getElementById('password'); let captchaResponse = document.querySelector('p#cpatchaDiv #captchaResponse'); let button = document.querySelector('button'); if (username && password && button && !captchaResponse) { username.value = CARD_ID; password.value = PASSWORD; extra_times = 750; button.click(); setTimeout(() => { extra_times = 0; }, RECURSION_DURATION); }; } else if (location.host == 'ehall.szu.edu.cn') { let ampHasNoLogin = document.getElementById('ampHasNoLogin'); if (ampHasNoLogin) { ampHasNoLogin.click(); }; if (location.href.indexOf('/jwapp/sys/czjl') >= 0) { let el = document.getElementsByClassName('czjl-sixItem-container')[0]; let innerHTML = el.innerHTML.replace(/<!\-\-\s*/g, '').replace(/\s*\-\->+/g, ''); if (el.innerHTML !== innerHTML) el.innerHTML = innerHTML; }; } else if (location.host == '172.30.255.2') { if (location.href.includes('.htm')) { let username = document.getElementById('username'); let password = document.getElementById('password'); let submit = document.querySelector('#submit[type=submit]'); if (username && password && submit) { username.value = CARD_ID; password.value = PASSWORD; submit.click(); }; }; } else if (location.host == 'drcom.szu.edu.cn') { if (location.href.includes('.htm')) { let username = document.querySelector('input[name=DDDDD]'); let password = document.querySelector('input[name=upass]'); let submit = document.querySelector('input[type=submit]'); if (username && password && submit) { username.value = CARD_ID; password.value = PASSWORD; submit.click(); }; }; } else if (location.host == 'www1.szu.edu.cn') { if (location.href == 'https://www1.szu.edu.cn/') { let td = document.querySelector('table table table tbody tr td'); let a_drcom_dom = document.getElementById('drcom_dom'); if (td && !a_drcom_dom) { td.querySelectorAll('img').forEach(e => e.remove()); td.firstChild.remove(); td.firstChild.remove(); td.style.padding = '5px 20px'; td.innerHTML += '<br>'; let a = document.createElement('a'); a.href = 'http://192.168.84.3:9090/cgcSims/'; a.id = 'electricity'; a.innerHTML = '宿舍用电查询'; td.appendChild(a); a = document.createElement('a'); a.href = 'https://self.szu.edu.cn/self/'; a.id = 'network'; a.innerHTML = '|校园网络续费'; td.appendChild(a); a = document.createElement('a'); a.href = 'http://172.30.255.2/0.htm'; a.id = 'drcom_dom'; a.innerHTML = '|登录(不可用) Dr.com'; td.appendChild(a); td.innerHTML += '<br>'; a = document.createElement('a'); a.href = 'http://ehall.szu.edu.cn/publicapp/sys/tycgyyxt/index.do'; a.id = 'venue_yh'; a.innerHTML = '体育场馆预订(粤海校区)'; td.appendChild(a); a = document.createElement('a'); a.href = 'http://ehall.szu.edu.cn/publicappxl/sys/xlxqtycgyy/index.do'; a.id = 'venue_lh'; a.innerHTML = '|体育场馆预订(丽湖校区)'; td.appendChild(a); td.innerHTML += '<br>'; a = document.createElement('a'); a.href = 'http://www.lib.szu.edu.cn/zh-hans/er/baidu-wenku'; a.id = 'wenku'; a.innerHTML = '百度文库'; td.appendChild(a); a = document.createElement('a'); a.href = 'https://www1.szu.edu.cn/nc/view.asp?id=64'; a.id = 'download'; a.innerHTML = '|下载专区'; td.appendChild(a); a = document.createElement('a'); a.href = 'http://xzfc.szu.edu.cn/rsfw/sys/szdxxzfc/login/index.do'; a.id = 'teacher'; a.innerHTML = '|师资队伍'; td.appendChild(a); let tbody = document.querySelectorAll('table table table tbody')[4]; tbody.querySelector('tr:nth-child(2)').style.height = '415px'; }; }; } else if (location.host == 'bkxk.szu.edu.cn') { let loginName = document.getElementById('loginName'); let loginPwd = document.getElementById('loginPwd'); if (loginName && loginPwd) { loginName.value = STUDENT_ID; loginPwd.value = PASSWORD; }; } else if (location.host == 'self.szu.edu.cn') { let account = document.getElementById('account'); let pass = document.getElementById('pass'); let submit = document.querySelector('input[type=submit]'); if (account && pass && submit) { account.value = CARD_ID; pass.value = PASSWORD; submit.click(); }; }; setTimeout(recursion, RECURSION_DURATION + extra_times); })(); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址