xmoj-script 1.2.64 → 1.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Update.json +11 -0
- package/XMOJ.user.js +6 -3
- package/package.json +1 -1
package/Update.json
CHANGED
|
@@ -2554,6 +2554,17 @@
|
|
|
2554
2554
|
}
|
|
2555
2555
|
],
|
|
2556
2556
|
"Notes": "No release notes were provided for this release."
|
|
2557
|
+
},
|
|
2558
|
+
"1.2.65": {
|
|
2559
|
+
"UpdateDate": 1727861782766,
|
|
2560
|
+
"Prerelease": true,
|
|
2561
|
+
"UpdateContents": [
|
|
2562
|
+
{
|
|
2563
|
+
"PR": 737,
|
|
2564
|
+
"Description": "Add http request headers"
|
|
2565
|
+
}
|
|
2566
|
+
],
|
|
2567
|
+
"Notes": "No release notes were provided for this release."
|
|
2557
2568
|
}
|
|
2558
2569
|
}
|
|
2559
2570
|
}
|
package/XMOJ.user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// ==UserScript==
|
|
2
2
|
// @name XMOJ
|
|
3
|
-
// @version 1.2.
|
|
3
|
+
// @version 1.2.65
|
|
4
4
|
// @description XMOJ增强脚本
|
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
|
6
6
|
// @namespace https://github/langningchen
|
|
@@ -417,7 +417,10 @@ let RequestAPI = (Action, Data, CallBack) => {
|
|
|
417
417
|
url: (UtilityEnabled("SuperDebug") ? "http://127.0.0.1:8787/" : "https://api.xmoj-bbs.me/") + Action,
|
|
418
418
|
headers: {
|
|
419
419
|
"Content-Type": "application/json",
|
|
420
|
-
"Cache-Control": "no-cache"
|
|
420
|
+
"Cache-Control": "no-cache",
|
|
421
|
+
"XMOJ-UserID": CurrentUsername,
|
|
422
|
+
"XMOJ-Script-Version": GM_info.script.version,
|
|
423
|
+
"DebugMode": UtilityEnabled("DebugMode")
|
|
421
424
|
},
|
|
422
425
|
data: DataString,
|
|
423
426
|
onload: (Response) => {
|
|
@@ -1503,7 +1506,7 @@ async function main() {
|
|
|
1503
1506
|
localStorage.setItem("UserScript-Problem-" + Temp[i].children[1].innerText + "-Name", Temp[i].children[2].innerText);
|
|
1504
1507
|
}
|
|
1505
1508
|
} else if (location.pathname == "/problem.php") {
|
|
1506
|
-
RenderMathJax();
|
|
1509
|
+
await RenderMathJax();
|
|
1507
1510
|
if (SearchParams.get("cid") != null) {
|
|
1508
1511
|
document.getElementsByTagName("h2")[0].innerHTML += " (" + localStorage.getItem("UserScript-Contest-" + SearchParams.get("cid") + "-Problem-" + SearchParams.get("pid") + "-PID") + ")";
|
|
1509
1512
|
}
|