xmoj-script 1.2.36 → 1.2.37
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 +11 -5
- package/package.json +1 -1
package/Update.json
CHANGED
|
@@ -2146,6 +2146,17 @@
|
|
|
2146
2146
|
}
|
|
2147
2147
|
],
|
|
2148
2148
|
"Notes": "No release notes were provided for this release."
|
|
2149
|
+
},
|
|
2150
|
+
"1.2.37": {
|
|
2151
|
+
"UpdateDate": 1723094016287,
|
|
2152
|
+
"Prerelease": true,
|
|
2153
|
+
"UpdateContents": [
|
|
2154
|
+
{
|
|
2155
|
+
"PR": 655,
|
|
2156
|
+
"Description": "Prevent RE"
|
|
2157
|
+
}
|
|
2158
|
+
],
|
|
2159
|
+
"Notes": "No release notes were provided for this release."
|
|
2149
2160
|
}
|
|
2150
2161
|
}
|
|
2151
2162
|
}
|
package/XMOJ.user.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// ==UserScript==
|
|
2
2
|
// @name XMOJ
|
|
3
|
-
// @version 1.2.
|
|
3
|
+
// @version 1.2.37
|
|
4
4
|
// @description XMOJ增强脚本
|
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
|
6
6
|
// @namespace https://github/langningchen
|
|
@@ -105,9 +105,11 @@ let RenderMathJax = async () => {
|
|
|
105
105
|
};
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
|
-
MathJax
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
if (MathJax !== undefined) { //If there is a Math expression
|
|
109
|
+
MathJax.startup.input[0].findTeX.options.inlineMath.push(["$", "$"]);
|
|
110
|
+
MathJax.startup.input[0].findTeX.getPatterns();
|
|
111
|
+
MathJax.typeset();
|
|
112
|
+
}
|
|
111
113
|
} catch (e) {
|
|
112
114
|
console.error(e);
|
|
113
115
|
if (UtilityEnabled("DebugMode")) {
|
|
@@ -2437,7 +2439,7 @@ async function main() {
|
|
|
2437
2439
|
"hanshujian": "韩书简",
|
|
2438
2440
|
"heshuhan": "贺书瀚",
|
|
2439
2441
|
"hexinyi": "何昕弈",
|
|
2440
|
-
"huheng":"胡恒",
|
|
2442
|
+
"huheng": "胡恒",
|
|
2441
2443
|
"huangmingxuan": "黄铭宣",
|
|
2442
2444
|
"huangruina": "黄睿纳",
|
|
2443
2445
|
"huangwei": "黄唯",
|
|
@@ -2700,6 +2702,7 @@ async function main() {
|
|
|
2700
2702
|
}
|
|
2701
2703
|
}
|
|
2702
2704
|
} else if (location.pathname == "/submitpage.php") {
|
|
2705
|
+
document.title = "提交代码: " + (SearchParams.get("id") != null ? "题目" + Number(SearchParams.get("id")) : "比赛" + Number(SearchParams.get("cid")));
|
|
2703
2706
|
document.querySelector("body > div > div.mt-3").innerHTML = `<center class="mb-3">` + `<h3>提交代码</h3>` + (SearchParams.get("id") != null ? `题目<span class="blue">${Number(SearchParams.get("id"))}</span>` : `比赛<span class="blue">${Number(SearchParams.get("cid")) + `</span> 题目<span class="blue">` + String.fromCharCode(65 + parseInt(SearchParams.get("pid")))}</span>`) + `</center>
|
|
2704
2707
|
<textarea id="CodeInput"></textarea>
|
|
2705
2708
|
<center class="mt-3">
|
|
@@ -3360,6 +3363,9 @@ async function main() {
|
|
|
3360
3363
|
});
|
|
3361
3364
|
}
|
|
3362
3365
|
} else if (location.pathname == "/conteststatistics.php") {
|
|
3366
|
+
if (new URL(location.href).searchParams.get("cid") != null) {
|
|
3367
|
+
document.title = "比赛 " + new URL(location.href).searchParams.get("cid") + " 统计";
|
|
3368
|
+
}
|
|
3363
3369
|
document.querySelector("body > div > div.mt-3 > center > h3").innerText = "比赛统计";
|
|
3364
3370
|
if (UtilityEnabled("ResetType")) {
|
|
3365
3371
|
let Temp = document.getElementById("submission").childNodes;
|