您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
把课程英文名替换成课程 id
// ==UserScript== // @name Fuck 抢课 // @namespace http://tampermonkey.net/ // @version 2024-07-29 // @description 把课程英文名替换成课程 id // @author okok // @match http://jw.hitsz.edu.cn/* // @icon https://dxcdp.hitsz.edu.cn/portal/bg_32X32.ico // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Store the original XMLHttpRequest const originalXHROpen = XMLHttpRequest.prototype.open; // Override the XMLHttpRequest open method XMLHttpRequest.prototype.open = function() { this.addEventListener("readystatechange", function() { if (this.readyState === 4 && this.responseURL === "http://jw.hitsz.edu.cn/Xsxk/queryKxrw") { // Parse the response text let responseData = JSON.parse(this.responseText); console.log(responseData); let kxrwList = responseData.kxrwList; for (let i = 0; i < kxrwList.list.length; i++) { let kc = { kcmc: kxrwList.list[i].kcmc, id: kxrwList.list[i].id, kcdm: kxrwList.list[i].kcdm } responseData.kxrwList.list[i].kcmc_en = kc["id"]; } Object.defineProperty(this, "responseText", { value: JSON.stringify(responseData) }); Object.defineProperty(this, "response", { value: JSON.stringify(responseData) }); } // console.log("Hi, I'm a tamper script! XMLHttpRequest open method is called!"); }); return originalXHROpen.apply(this, arguments); }; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址