// ==UserScript== // @name TJUPT Helper // @namespace http://tampermonkey.net/ // @version 0.1 // @description TJUPT 辅种工具 // @author xqm32 // @match https://tjupt.org/userdetails.php?id=* // @icon none // @grant none // @require https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js // @require https://cdn.jsdelivr.net/npm/clipboard@2.0.10/dist/clipboard.min.js // @license MIT // @downloadURL none // ==/UserScript== (function () { let getUserID = function () { let url = new URL(window.location.href) return url.searchParams.get("id") } let getTorrentList = async function (e, t, n) { const i = $(`#${n}`); console.log("getTorrentList") $("#th-msg").text(`获取中`) klappe_news(n.substr(1)), "加载中..." === i.html() && await $.get("getusertorrentlistajax.php", { userid: e, type: t }, (e => { i.html(e) } )) } let showTorrentList = function (n) { $(`#${n} > table > tbody > tr:nth-child(1)`).append(`