xmoj-script 1.2.54 → 1.2.55
Sign up to get free protection for your applications and to get access to all the features.
- package/Update.json +11 -0
- package/XMOJ.user.js +6 -5
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -2420,6 +2420,17 @@
|
|
2420
2420
|
}
|
2421
2421
|
],
|
2422
2422
|
"Notes": "No release notes were provided for this release."
|
2423
|
+
},
|
2424
|
+
"1.2.55": {
|
2425
|
+
"UpdateDate": 1723461779306,
|
2426
|
+
"Prerelease": true,
|
2427
|
+
"UpdateContents": [
|
2428
|
+
{
|
2429
|
+
"PR": 698,
|
2430
|
+
"Description": "Set turnstile theme and language"
|
2431
|
+
}
|
2432
|
+
],
|
2433
|
+
"Notes": "No release notes were provided for this release."
|
2423
2434
|
}
|
2424
2435
|
}
|
2425
2436
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.2.
|
3
|
+
// @version 1.2.55
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -2754,8 +2754,8 @@ async function main() {
|
|
2754
2754
|
ErrorElement.style.display = "none";
|
2755
2755
|
document.querySelector("#Submit").disabled = true;
|
2756
2756
|
document.querySelector("#Submit").value = "正在提交...";
|
2757
|
-
let o2Switch="&enable_O2=on";
|
2758
|
-
if(!document.querySelector("#enable_O2").checked)o2Switch="";
|
2757
|
+
let o2Switch = "&enable_O2=on";
|
2758
|
+
if (!document.querySelector("#enable_O2").checked) o2Switch = "";
|
2759
2759
|
await fetch("https://www.xmoj.tech/submit.php", {
|
2760
2760
|
"headers": {
|
2761
2761
|
"content-type": "application/x-www-form-urlencoded"
|
@@ -2803,8 +2803,8 @@ async function main() {
|
|
2803
2803
|
ErrorMessage.style.color = "red";
|
2804
2804
|
ErrorMessage.innerText = "比赛已结束, 正在尝试像题目 " + rPID + " 提交";
|
2805
2805
|
console.log("比赛已结束, 正在尝试像题目 " + rPID + " 提交");
|
2806
|
-
let o2Switch="&enable_O2=on";
|
2807
|
-
if(!document.querySelector("#enable_O2").checked)o2Switch="";
|
2806
|
+
let o2Switch = "&enable_O2=on";
|
2807
|
+
if (!document.querySelector("#enable_O2").checked) o2Switch = "";
|
2808
2808
|
await fetch("https://www.xmoj.tech/submit.php", {
|
2809
2809
|
"headers": {
|
2810
2810
|
"content-type": "application/x-www-form-urlencoded"
|
@@ -4682,6 +4682,7 @@ int main()
|
|
4682
4682
|
let CaptchaSecretKey = "";
|
4683
4683
|
unsafeWindow.CaptchaLoadedCallback = () => {
|
4684
4684
|
turnstile.render("#CaptchaContainer", {
|
4685
|
+
theme: UtilityEnabled("DarkMode") ? "dark" : "light", language: "zh-cn",
|
4685
4686
|
sitekey: CaptchaSiteKey, callback: function (CaptchaSecretKeyValue) {
|
4686
4687
|
CaptchaSecretKey = CaptchaSecretKeyValue;
|
4687
4688
|
SubmitElement.disabled = false;
|