xmoj-script 1.1.35 → 1.1.36
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 -3
- package/package.json +1 -1
package/Update.json
CHANGED
@@ -1183,6 +1183,17 @@
|
|
1183
1183
|
}
|
1184
1184
|
],
|
1185
1185
|
"Notes": "No release notes were provided for this release."
|
1186
|
+
},
|
1187
|
+
"1.1.36": {
|
1188
|
+
"UpdateDate": 1706680652574,
|
1189
|
+
"Prerelease": true,
|
1190
|
+
"UpdateContents": [
|
1191
|
+
{
|
1192
|
+
"PR": 413,
|
1193
|
+
"Description": "fix #409"
|
1194
|
+
}
|
1195
|
+
],
|
1196
|
+
"Notes": "No release notes were provided for this release."
|
1186
1197
|
}
|
1187
1198
|
}
|
1188
1199
|
}
|
package/XMOJ.user.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// ==UserScript==
|
2
2
|
// @name XMOJ
|
3
|
-
// @version 1.1.
|
3
|
+
// @version 1.1.36
|
4
4
|
// @description XMOJ增强脚本
|
5
5
|
// @author @XMOJ-Script-dev, @langningchen and the community
|
6
6
|
// @namespace https://github/langningchen
|
@@ -546,8 +546,11 @@ if (location.host != "www.xmoj.tech") {
|
|
546
546
|
|
547
547
|
await Promise.all(promises);
|
548
548
|
};
|
549
|
-
|
550
|
-
|
549
|
+
if (location.pathname == "/submitpage.php") {
|
550
|
+
await loadResources();
|
551
|
+
} else {
|
552
|
+
loadResources();
|
553
|
+
}
|
551
554
|
document.querySelector("nav").className = "navbar navbar-expand-lg bg-body-tertiary";
|
552
555
|
document.querySelector("#navbar > ul:nth-child(1)").classList = "navbar-nav me-auto mb-2 mb-lg-0";
|
553
556
|
document.querySelector("body > div > nav > div > div.navbar-header").outerHTML = `<a class="navbar-brand" href="https://www.xmoj.tech/">${UtilityEnabled("ReplaceXM") ? "高老师" : "小明"}的OJ</a><button type="button" class="navbar-toggler" data-bs-toggle="collapse" data-bs-target="#navbar"><span class="navbar-toggler-icon"></span></button>`;
|