xmoj-script 1.1.21 → 1.1.22
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 +11 -0
- package/XMOJ.user.js +3 -1
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -1038,6 +1038,17 @@
|
|
1038
1038
|
}
|
1039
1039
|
],
|
1040
1040
|
"Notes": "Oops, sorry. I forgot to add the spellcheck some text fields. Anyway, it's fixed now. 😅"
|
1041
|
+
},
|
1042
|
+
"1.1.22": {
|
1043
|
+
"UpdateDate": 1705983862747,
|
1044
|
+
"Prerelease": true,
|
1045
|
+
"UpdateContents": [
|
1046
|
+
{
|
1047
|
+
"PR": 378,
|
1048
|
+
"Description": "sleep for a sec after submitting to prevent xmoj from crashing"
|
1049
|
+
}
|
1050
|
+
],
|
1051
|
+
"Notes": "No release notes were provided for this release."
|
1041
1052
|
}
|
1042
1053
|
}
|
1043
1054
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.22
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -1860,6 +1860,8 @@ else {
|
|
1860
1860
|
"source=" + encodeURIComponent(Code) + "&" +
|
1861
1861
|
"enable_O2=on"
|
1862
1862
|
});
|
1863
|
+
//sleep for one second
|
1864
|
+
await new Promise(r => setTimeout(r, 500));
|
1863
1865
|
}
|
1864
1866
|
if (!Submitted) {
|
1865
1867
|
AutoCheatButton.innerHTML = "没有可以提交的题目!";
|