xmoj-script 1.2.53 → 1.2.55

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 CHANGED
@@ -2409,6 +2409,28 @@
2409
2409
  }
2410
2410
  ],
2411
2411
  "Notes": "No release notes were provided for this release."
2412
+ },
2413
+ "1.2.54": {
2414
+ "UpdateDate": 1723450512410,
2415
+ "Prerelease": true,
2416
+ "UpdateContents": [
2417
+ {
2418
+ "PR": 694,
2419
+ "Description": "更新support url"
2420
+ }
2421
+ ],
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."
2412
2434
  }
2413
2435
  }
2414
2436
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.2.53
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
@@ -21,7 +21,7 @@
21
21
  // @grant GM_setValue
22
22
  // @grant GM_getValue
23
23
  // @homepage https://www.xmoj-bbs.me/
24
- // @supportURL https://github.com/XMOJ-Script-dev/XMOJ-Script/issues
24
+ // @supportURL https://support.xmoj-bbs.me/form/8050213e-c806-4680-b414-0d1c48263677
25
25
  // @connect api.xmoj-bbs.tech
26
26
  // @connect api.xmoj-bbs.me
27
27
  // @connect challenges.cloudflare.com
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.2.53",
3
+ "version": "1.2.55",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {