xmoj-script 1.1.34 → 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 CHANGED
@@ -1172,6 +1172,28 @@
1172
1172
  }
1173
1173
  ],
1174
1174
  "Notes": "No release notes were provided for this release."
1175
+ },
1176
+ "1.1.35": {
1177
+ "UpdateDate": 1706625057380,
1178
+ "Prerelease": true,
1179
+ "UpdateContents": [
1180
+ {
1181
+ "PR": 412,
1182
+ "Description": "修改警告"
1183
+ }
1184
+ ],
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."
1175
1197
  }
1176
1198
  }
1177
1199
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.1.34
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
- loadResources();
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>`;
@@ -1138,7 +1141,7 @@ if (location.host != "www.xmoj.tech") {
1138
1141
  {
1139
1142
  "ID": "SuperDebug",
1140
1143
  "Type": "A",
1141
- "Name": "本地调试模式(仅供开发者使用) (If you don't know what this does, don't enable it!)"
1144
+ "Name": "本地调试模式(仅供开发者使用) (未经授权的擅自开启将导致大部分功能不可用!)"
1142
1145
  },
1143
1146
  {"ID": "UnpkgCdn", "Type": "A", "Name": "使用 unpkg CDN (不建议使用)"},
1144
1147
  ]));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {