xmoj-script 1.1.20 → 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 +22 -0
- package/XMOJ.user.js +5 -3
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -1027,6 +1027,28 @@
|
|
1027
1027
|
}
|
1028
1028
|
],
|
1029
1029
|
"Notes": "This release enables spell checking for bbs and short_msg! 🎉\nI did it 5 minutes after proposing it, swx."
|
1030
|
+
},
|
1031
|
+
"1.1.21": {
|
1032
|
+
"UpdateDate": 1705929832424,
|
1033
|
+
"Prerelease": true,
|
1034
|
+
"UpdateContents": [
|
1035
|
+
{
|
1036
|
+
"PR": 377,
|
1037
|
+
"Description": "fix spellcheck"
|
1038
|
+
}
|
1039
|
+
],
|
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."
|
1030
1052
|
}
|
1031
1053
|
}
|
1032
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 = "没有可以提交的题目!";
|
@@ -3667,7 +3669,7 @@ int main()
|
|
3667
3669
|
<label for="ToUser">接收用户</label>
|
3668
3670
|
</div>
|
3669
3671
|
<div class="col-md form-floating">
|
3670
|
-
<input class="form-control" id="Content" placeholder=" ">
|
3672
|
+
<input spellcheck="true" class="form-control" id="Content" placeholder=" ">
|
3671
3673
|
<label for="Content">内容</label>
|
3672
3674
|
</div>
|
3673
3675
|
</div>
|
@@ -3908,7 +3910,7 @@ int main()
|
|
3908
3910
|
</div>
|
3909
3911
|
<div class="form-group mb-3">
|
3910
3912
|
<label for="Title" class="mb-1">标题</label>
|
3911
|
-
<input type="text" class="form-control" id="TitleElement" placeholder="请输入标题">
|
3913
|
+
<input spellcheck="true" type="text" class="form-control" id="TitleElement" placeholder="请输入标题">
|
3912
3914
|
</div>
|
3913
3915
|
<div>
|
3914
3916
|
<label for="ContentElement" class="mb-1">回复</label>
|