xmoj-script 1.2.46 → 1.2.47

Sign up to get free protection for your applications and to get access to all the features.
package/Update.json CHANGED
@@ -2296,6 +2296,17 @@
2296
2296
  }
2297
2297
  ],
2298
2298
  "Notes": "No release notes were provided for this release."
2299
+ },
2300
+ "1.2.47": {
2301
+ "UpdateDate": 1723181393030,
2302
+ "Prerelease": true,
2303
+ "UpdateContents": [
2304
+ {
2305
+ "PR": 670,
2306
+ "Description": "Fix RE"
2307
+ }
2308
+ ],
2309
+ "Notes": "No release notes were provided for this release."
2299
2310
  }
2300
2311
  }
2301
2312
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.2.46
3
+ // @version 1.2.47
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -3712,6 +3712,11 @@ int main()
3712
3712
  let ParsedDocument = new DOMParser().parseFromString(Response, "text/html");
3713
3713
  let ErrorData = ParsedDocument.getElementById("errtxt").innerText;
3714
3714
  let MatchResult = ErrorData.match(/\what\(\): \[([A-Za-z0-9+\/=]+)\]/g);
3715
+ if (MatchResult === null) {
3716
+ GetDataButton.innerText = "获取数据失败";
3717
+ GetDataButton.disabled = false;
3718
+ return;
3719
+ }
3715
3720
  for (let i = 0; i < MatchResult.length; i++) {
3716
3721
  let Data = CryptoJS.enc.Base64.parse(MatchResult[i].substring(10, MatchResult[i].length - 1)).toString(CryptoJS.enc.Utf8);
3717
3722
  ApplyDiv.appendChild(document.createElement("hr"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.2.46",
3
+ "version": "1.2.47",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {