Skip to content

Commit

Permalink
Merge pull request #670 from XMOJ-Script-dev/boomzero/stab
Browse files Browse the repository at this point in the history
Fix RE
  • Loading branch information
boomzero authored Aug 9, 2024
2 parents 6a28e7c + 7ef6c2a commit 4b3ef49
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
11 changes: 11 additions & 0 deletions Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -2296,6 +2296,17 @@
}
],
"Notes": "No release notes were provided for this release."
},
"1.2.47": {
"UpdateDate": 1723181393030,
"Prerelease": true,
"UpdateContents": [
{
"PR": 670,
"Description": "Fix RE"
}
],
"Notes": "No release notes were provided for this release."
}
}
}
7 changes: 6 additions & 1 deletion XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
// @version 1.2.46
// @version 1.2.47
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
Expand Down Expand Up @@ -3712,6 +3712,11 @@ int main()
let ParsedDocument = new DOMParser().parseFromString(Response, "text/html");
let ErrorData = ParsedDocument.getElementById("errtxt").innerText;
let MatchResult = ErrorData.match(/\what\(\): \[([A-Za-z0-9+\/=]+)\]/g);
if (MatchResult === null) {
GetDataButton.innerText = "获取数据失败";
GetDataButton.disabled = false;
return;
}
for (let i = 0; i < MatchResult.length; i++) {
let Data = CryptoJS.enc.Base64.parse(MatchResult[i].substring(10, MatchResult[i].length - 1)).toString(CryptoJS.enc.Utf8);
ApplyDiv.appendChild(document.createElement("hr"));
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xmoj-script",
"version": "1.2.46",
"version": "1.2.47",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {
Expand Down

0 comments on commit 4b3ef49

Please sign in to comment.