xmoj-script 1.1.32 → 1.1.33

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
@@ -1149,6 +1149,17 @@
1149
1149
  "Description": "more choices"
1150
1150
  }
1151
1151
  ],
1152
+ "Notes": "Because choices..."
1153
+ },
1154
+ "1.1.33": {
1155
+ "UpdateDate": 1706509685600,
1156
+ "Prerelease": true,
1157
+ "UpdateContents": [
1158
+ {
1159
+ "PR": 407,
1160
+ "Description": "superdebug mode"
1161
+ }
1162
+ ],
1152
1163
  "Notes": "No release notes were provided for this release."
1153
1164
  }
1154
1165
  }
package/XMOJ.user.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // ==UserScript==
2
2
  // @name XMOJ
3
- // @version 1.1.32
3
+ // @version 1.1.33
4
4
  // @description XMOJ增强脚本
5
5
  // @author @XMOJ-Script-dev, @langningchen and the community
6
6
  // @namespace https://github/langningchen
@@ -328,7 +328,7 @@ let TidyTable = (Table) => {
328
328
  let UtilityEnabled = (Name) => {
329
329
  if (localStorage.getItem("UserScript-Setting-" + Name) == null) {
330
330
  //DebugMode is off by default
331
- localStorage.setItem("UserScript-Setting-" + Name, (Name == "DebugMode" || Name == "UnpkgCdn" ? "false" : "true"));
331
+ localStorage.setItem("UserScript-Setting-" + Name, (Name == "DebugMode" || Name == "UnpkgCdn" || Name == "SuperDebug" ? "false" : "true"));
332
332
  }
333
333
  return localStorage.getItem("UserScript-Setting-" + Name) == "true";
334
334
  };
@@ -352,8 +352,7 @@ let RequestAPI = (Action, Data, CallBack) => {
352
352
  let DataString = JSON.stringify(PostData);
353
353
  GM_xmlhttpRequest({
354
354
  method: "POST",
355
- url: "https://api.xmoj-bbs.tech/" + Action,
356
- // url: "http://127.0.0.1:8787/" + Action,
355
+ url: (UtilityEnabled("SuperDebug") ? "http://127.0.0.1:8787/" : "https://api.xmoj-bbs.tech/") + Action,
357
356
  headers: {
358
357
  "Content-Type": "application/json"
359
358
  },
@@ -1136,7 +1135,12 @@ if (location.host != "www.xmoj.tech") {
1136
1135
  {"ID": "BBSPopup", "Type": "A", "Name": "讨论提醒"},
1137
1136
  {"ID": "MessagePopup", "Type": "A", "Name": "短消息提醒"},
1138
1137
  {"ID": "DebugMode", "Type": "A", "Name": "调试模式(仅供开发者使用)"},
1139
- {"ID": "UnpkgCdn", "Type": "A", "Name": "使用unpkg CDN(不建议使用)"}
1138
+ {
1139
+ "ID": "SuperDebug",
1140
+ "Type": "A",
1141
+ "Name": "本地调试模式(仅供开发者使用) (If you don't know what this does, don't enable it!)"
1142
+ },
1143
+ {"ID": "UnpkgCdn", "Type": "A", "Name": "使用 unpkg CDN (不建议使用)"},
1140
1144
  ]));
1141
1145
  let UtilitiesCardFooter = document.createElement("div");
1142
1146
  UtilitiesCardFooter.className = "card-footer text-muted";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xmoj-script",
3
- "version": "1.1.32",
3
+ "version": "1.1.33",
4
4
  "description": "an improvement script for xmoj.tech",
5
5
  "main": "AddonScript.js",
6
6
  "scripts": {