xmoj-script 1.2.36 → 1.2.38
Sign up to get free protection for your applications and to get access to all the features.
- package/Update.json +22 -0
- package/XMOJ.user.js +14 -6
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -2146,6 +2146,28 @@
|
|
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."
|
2160
|
+
},
|
2161
|
+
"1.2.38": {
|
2162
|
+
"UpdateDate": 1723094571329,
|
2163
|
+
"Prerelease": true,
|
2164
|
+
"UpdateContents": [
|
2165
|
+
{
|
2166
|
+
"PR": 657,
|
2167
|
+
"Description": "log Success"
|
2168
|
+
}
|
2169
|
+
],
|
2170
|
+
"Notes": "No release notes were provided for this release."
|
2149
2171
|
}
|
2150
2172
|
}
|
2151
2173
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.2.
|
3
|
+
// @version 1.2.38
|
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;
|
@@ -5044,4 +5050,6 @@ int main()
|
|
5044
5050
|
}
|
5045
5051
|
}
|
5046
5052
|
|
5047
|
-
main()
|
5053
|
+
main().then(r => {
|
5054
|
+
console.log("XMOJ-Script loaded successfully!");
|
5055
|
+
});
|