diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 98b30877..71e87d1a 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,7 @@
-
+
@@ -17,7 +17,7 @@
@@ -50,7 +50,7 @@
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
- "git-widget-placeholder": "boomzero/massive-improvement",
+ "git-widget-placeholder": "boomzero/choices",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
@@ -76,7 +76,7 @@
-
+
@@ -190,7 +190,15 @@
1706507021921
-
+
+
+ 1706508882660
+
+
+
+ 1706508882660
+
+
@@ -218,6 +226,7 @@
-
+
+
diff --git a/Update.json b/Update.json
index c33ef0f2..dd2c9e62 100644
--- a/Update.json
+++ b/Update.json
@@ -1149,6 +1149,17 @@
"Description": "more choices"
}
],
+ "Notes": "Because choices..."
+ },
+ "1.1.33": {
+ "UpdateDate": 1706509685600,
+ "Prerelease": true,
+ "UpdateContents": [
+ {
+ "PR": 407,
+ "Description": "superdebug mode"
+ }
+ ],
"Notes": "No release notes were provided for this release."
}
}
diff --git a/XMOJ.user.js b/XMOJ.user.js
index 5a708188..ab7579cf 100644
--- a/XMOJ.user.js
+++ b/XMOJ.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name XMOJ
-// @version 1.1.32
+// @version 1.1.33
// @description XMOJ增强脚本
// @author @XMOJ-Script-dev, @langningchen and the community
// @namespace https://github/langningchen
@@ -328,7 +328,7 @@ let TidyTable = (Table) => {
let UtilityEnabled = (Name) => {
if (localStorage.getItem("UserScript-Setting-" + Name) == null) {
//DebugMode is off by default
- localStorage.setItem("UserScript-Setting-" + Name, (Name == "DebugMode" || Name == "UnpkgCdn" ? "false" : "true"));
+ localStorage.setItem("UserScript-Setting-" + Name, (Name == "DebugMode" || Name == "UnpkgCdn" || Name == "SuperDebug" ? "false" : "true"));
}
return localStorage.getItem("UserScript-Setting-" + Name) == "true";
};
@@ -352,8 +352,7 @@ let RequestAPI = (Action, Data, CallBack) => {
let DataString = JSON.stringify(PostData);
GM_xmlhttpRequest({
method: "POST",
- url: "https://api.xmoj-bbs.tech/" + Action,
- // url: "http://127.0.0.1:8787/" + Action,
+ url: (UtilityEnabled("SuperDebug") ? "http://127.0.0.1:8787/" : "https://api.xmoj-bbs.tech/") + Action,
headers: {
"Content-Type": "application/json"
},
@@ -1136,7 +1135,12 @@ if (location.host != "www.xmoj.tech") {
{"ID": "BBSPopup", "Type": "A", "Name": "讨论提醒"},
{"ID": "MessagePopup", "Type": "A", "Name": "短消息提醒"},
{"ID": "DebugMode", "Type": "A", "Name": "调试模式(仅供开发者使用)"},
- {"ID": "UnpkgCdn", "Type": "A", "Name": "使用unpkg CDN(不建议使用)"}
+ {
+ "ID": "SuperDebug",
+ "Type": "A",
+ "Name": "本地调试模式(仅供开发者使用) (If you don't know what this does, don't enable it!)"
+ },
+ {"ID": "UnpkgCdn", "Type": "A", "Name": "使用 unpkg CDN (不建议使用)"},
]));
let UtilitiesCardFooter = document.createElement("div");
UtilitiesCardFooter.className = "card-footer text-muted";
diff --git a/package.json b/package.json
index b19fed8e..004e8e8e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "xmoj-script",
- "version": "1.1.32",
+ "version": "1.1.33",
"description": "an improvement script for xmoj.tech",
"main": "AddonScript.js",
"scripts": {