From 5f5ee26b7629841a7a44628efe5f1cd7cf425db6 Mon Sep 17 00:00:00 2001 From: def-WA2025 Date: Sun, 12 Apr 2026 13:15:08 +0800 Subject: [PATCH 1/5] Fix loginpage.php Loop --- XMOJ.user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XMOJ.user.js b/XMOJ.user.js index 275ef481..4973f258 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -860,6 +860,7 @@ GM_registerMenuCommand("重置数据", () => { //otherwise CurrentUsername might be undefined if (UtilityEnabled("AutoLogin") && document.querySelector("body > a:nth-child(1)") != null && document.querySelector("body > a:nth-child(1)").innerText == "请登录后继续操作") { + if (document.querySelector('a').innerText == "Please logout First!") location.href = localStorage.getItem("UserScript-LastPage"); localStorage.setItem("UserScript-LastPage", location.pathname + location.search); location.href = "https://www.xmoj.tech/loginpage.php"; } @@ -867,6 +868,7 @@ if (UtilityEnabled("AutoLogin") && document.querySelector("body > a:nth-child(1) let SearchParams = new URLSearchParams(location.search); let ServerURL = (UtilityEnabled("DebugMode") ? "https://ghpages.xmoj-bbs.me/" : "https://www.xmoj-bbs.me") if (document.querySelector("#profile") === null) { + if (document.querySelector('a').innerText == "Please logout First!") location.href = localStorage.getItem("UserScript-LastPage"); location.href = "https://www.xmoj.tech/loginpage.php"; } let CurrentUsername = document.querySelector("#profile").innerText; @@ -1058,6 +1060,7 @@ async function main() { } if (UtilityEnabled("AutoLogin") && document.querySelector("#profile") != null && document.querySelector("#profile").innerHTML == "登录" && location.pathname != "/login.php" && location.pathname != "/loginpage.php" && location.pathname != "/lostpassword.php") { + if (document.querySelector('a').innerText == "Please logout First!") location.href = localStorage.getItem("UserScript-LastPage"); localStorage.setItem("UserScript-LastPage", location.pathname + location.search); location.href = "https://www.xmoj.tech/loginpage.php"; } From ffd268b81b48915dc868c23a61841272f1695a25 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 12 Apr 2026 05:31:37 +0000 Subject: [PATCH 2/5] 3.3.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6c733c70..515cd2e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmoj-script", - "version": "3.3.5", + "version": "3.3.6", "description": "an improvement script for xmoj.tech", "main": "AddonScript.js", "scripts": { From cc7a3d5b81195bd95943ab98e65114a8a76656e8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 12 Apr 2026 05:31:44 +0000 Subject: [PATCH 3/5] Update version info to 3.3.6 --- Update.json | 13 ++++++++++++- XMOJ.user.js | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Update.json b/Update.json index 00700095..f4919184 100644 --- a/Update.json +++ b/Update.json @@ -3477,6 +3477,17 @@ } ], "Notes": "No release notes were provided for this release." + }, + "3.3.6": { + "UpdateDate": 1775971898175, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 971, + "Description": "Fix loginpage.php Loop" + } + ], + "Notes": "Fix loginpage.php loop." } } -} +} \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index 4973f258..1751f35f 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name XMOJ -// @version 3.3.5 +// @version 3.3.6 // @description XMOJ增强脚本 // @author @XMOJ-Script-dev, @langningchen and the community // @namespace https://github/langningchen From e997ce0a795c0b0dcb1f9cb11bb8e0d9de237d10 Mon Sep 17 00:00:00 2001 From: zsTree Date: Sun, 12 Apr 2026 13:50:09 +0800 Subject: [PATCH 4/5] Bump version from 3.3.6 to 3.4.4 Signed-off-by: zsTree --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 515cd2e9..c433e40d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmoj-script", - "version": "3.3.6", + "version": "3.4.4", "description": "an improvement script for xmoj.tech", "main": "AddonScript.js", "scripts": { From 2a8b158796d5375706838e18f4a7dfbe3991e195 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 12 Apr 2026 06:00:19 +0000 Subject: [PATCH 5/5] Update time and description of 3.4.4 --- Update.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Update.json b/Update.json index f10c84b6..1877963c 100644 --- a/Update.json +++ b/Update.json @@ -3554,7 +3554,7 @@ "Notes": "No release notes were provided for this release." }, "3.4.4": { - "UpdateDate": 1775971898175, + "UpdateDate": 1775973614570, "Prerelease": true, "UpdateContents": [ {