您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
五邑大学信息查询查询
当前为
// ==UserScript== // @name 五邑大学信息查询 // @description 五邑大学信息查询查询 // @description:en 五邑大学信息查询查询 // @version 0.2 // @description try to take over the world! // @author chancoki // @match https://jxgl.wyu.edu.cn/login!welcome.action // @grant none // @namespace https://gf.qytechs.cn/users/754467 // ==/UserScript== (function() { 'use strict'; let isShow = true var body = document.body; var p = document.createElement("p"); var ul = document.createElement("ul"); body.appendChild(p); body.appendChild(ul) ul.className='itemList ' p.innerHTML=` <div class="nav"> <button id="two">第二课堂</button> <button id="work">上课任务</button> <button id="grade">成绩查询</button> <button id="exam">考试安排</button> </div> <style> .nav { height: 26px; width: 300px; border-radius: 5px; background-color: transparent; display: flex; justify-content: space-between; align-items: center; position: fixed; top: 65px; right: 97px; } .nav button { outline: none; border: 1px solid #95B8E7; background-color: #F9FCFF; color: #000; font-size: 12px; border-radius: 3px; } .itemList { height: 265px; width: 300px; overflow: auto; position: fixed; top: 79px; right: 97px;; } .itemList li { border-radius: 5px; padding-left: 5px; list-style: none; display: flex; font-size: 12px; line-height: 30px; background-color: #EAF2FF; border: 1px solid #95B8E7; margin-top: 2px; } .itemList li p { text-align: left; box-sizing: border-box; padding: 0 5px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .itemList li p:first-child { flex: 1.5; } .itemList li p:nth-child(2) { flex: .7; } .itemList li p:nth-child(3) { flex: 2; } .itemList li p:nth-child(4) { flex: .5; } </style> ` const nav = document.querySelector('.nav') nav.addEventListener('click',e=>{ const id = e.target.id if(id==='two'){ ul.style.display='block' isShow = true two() }else if(id === 'work'){ ul.style.display='block' isShow = true work() }else if(id==='grade'){ ul.style.display='block' isShow = true grade() }else if(id === 'exam'){ ul.style.display='block' isShow = true exam() }else{ ul.style.display= !isShow ? 'block': 'none' isShow = !isShow } }) async function two(){ const {rows} = await P('https://jxgl.wyu.edu.cn/xscxxfxx!getDataList.action') ul.innerHTML=add(rows,'xsbh','xsxm','xmfl','rdxf') } async function work(){ const {rows} = await P('https://jxgl.wyu.edu.cn/xskktzd!getDataList.action?xnxqdm='+nowTime()) ul.innerHTML=add(rows,'kcdlmc','teaxm','kcmc','xdfsmc') } async function grade(){ const {rows} = await P('https://jxgl.wyu.edu.cn/xskccjxx!getDataList.action?xnxqdm='+nowTime()) ul.innerHTML=add(rows,'kcdlmc','zcj','kcmc','cjjd') } async function exam(){ const {rows} = await P('https://jxgl.wyu.edu.cn/xsksap!getDataList.action?xnxqdm='+nowTime()) ul.innerHTML=add(rows,'kssj','jkteaxms','kcmc','kscdmc') } function add(data,n1,n2,n3,n4){ ul.innerHTML='' let li = '' for(let i of data){ li+=`<li> <p title='${i[n1]}'>${i[n1]}</p> <p title='${i[n2]}'>${i[n2]}</p> <p title='${i[n3]}'>${i[n3]}</p> <p title='${i[n4]}'>${i[n4]}</p> </li>` } return li } function nowTime() { const date = new Date() const year = date.getFullYear() const month = date.getMonth() + 1 if (month <= 2 || month >= 9) { if (month == 1 || month == 2) { return year-1+'01' } return year+'01' } else { return (year-1)+'02' } } function P(url) { return new Promise((res, rej) => { const xhr = new XMLHttpRequest(); xhr.open("GET", url); xhr.send(); xhr.responseType = "json"; xhr.onreadystatechange = () => { if (xhr.readyState === 4) { if (xhr.status >= 200 && xhr.status < 300) { res(xhr.response); } } }; }); } two() // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址