xmoj-script 1.7.1 → 1.7.2
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 +6 -6
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -2862,6 +2862,17 @@
|
|
2862
2862
|
}
|
2863
2863
|
],
|
2864
2864
|
"Notes": "No release notes were provided for this release."
|
2865
|
+
},
|
2866
|
+
"1.7.2": {
|
2867
|
+
"UpdateDate": 1749865010938,
|
2868
|
+
"Prerelease": true,
|
2869
|
+
"UpdateContents": [
|
2870
|
+
{
|
2871
|
+
"PR": 808,
|
2872
|
+
"Description": "feat: Enhance keyboard shortcuts for better cross-platform support"
|
2873
|
+
}
|
2874
|
+
],
|
2875
|
+
"Notes": "No release notes were provided for this release."
|
2865
2876
|
}
|
2866
2877
|
}
|
2867
2878
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.7.
|
3
|
+
// @version 1.7.2
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -1075,7 +1075,7 @@ window.addEventListener('DOMContentLoaded', async () => {
|
|
1075
1075
|
// Remove the preloader style now that the page is loading and Bootstrap 5 will take over.
|
1076
1076
|
const preloadStyleElement = document.getElementById('tampermonkey-dark-preload');
|
1077
1077
|
if (preloadStyleElement) {
|
1078
|
-
|
1078
|
+
preloadStyleElement.remove();
|
1079
1079
|
console.log("Removed minimal dark preload styles.");
|
1080
1080
|
}
|
1081
1081
|
fetch(ServerURL + "/Update.json", {cache: "no-cache"})
|
@@ -2233,7 +2233,7 @@ window.addEventListener('DOMContentLoaded', async () => {
|
|
2233
2233
|
if (Submitted) location.reload(); else AutoCheatButton.innerHTML = "自动提交当年代码";
|
2234
2234
|
});
|
2235
2235
|
document.addEventListener("keydown", (Event) => {
|
2236
|
-
if (Event.code === 'Enter' && Event.ctrlKey) {
|
2236
|
+
if (Event.code === 'Enter' && (Event.metaKey || Event.ctrlKey)) {
|
2237
2237
|
AutoCheatButton.click();
|
2238
2238
|
}
|
2239
2239
|
});
|
@@ -4211,7 +4211,7 @@ int main()
|
|
4211
4211
|
TurnstileScript.src = "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=CaptchaLoadedCallback";
|
4212
4212
|
document.body.appendChild(TurnstileScript);
|
4213
4213
|
ContentElement.addEventListener("keydown", (Event) => {
|
4214
|
-
if (Event.ctrlKey && Event.keyCode == 13) {
|
4214
|
+
if ((Event.metaKey || Event.ctrlKey) && Event.keyCode == 13) {
|
4215
4215
|
SubmitElement.click();
|
4216
4216
|
}
|
4217
4217
|
});
|
@@ -4388,7 +4388,7 @@ int main()
|
|
4388
4388
|
TurnstileScript.src = "https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit&onload=CaptchaLoadedCallback";
|
4389
4389
|
document.body.appendChild(TurnstileScript);
|
4390
4390
|
ContentElement.addEventListener("keydown", (Event) => {
|
4391
|
-
if (Event.ctrlKey && Event.keyCode == 13) {
|
4391
|
+
if ((Event.metaKey || Event.ctrlKey) && Event.keyCode == 13) {
|
4392
4392
|
SubmitElement.click();
|
4393
4393
|
}
|
4394
4394
|
});
|
@@ -4642,7 +4642,7 @@ int main()
|
|
4642
4642
|
ContentEditor.value = ContentEditor.value.substring(0, ContentEditor.value.indexOf("<br>"));
|
4643
4643
|
}
|
4644
4644
|
ContentEditor.addEventListener("keydown", (Event) => {
|
4645
|
-
if (Event.ctrlKey && Event.keyCode == 13) {
|
4645
|
+
if ((Event.metaKey || Event.ctrlKey) && Event.keyCode == 13) {
|
4646
4646
|
OKButton.click();
|
4647
4647
|
}
|
4648
4648
|
});
|