From dcea068cd0c7c1420a8c75e5749dd85f12985354 Mon Sep 17 00:00:00 2001 From: boomzero Date: Thu, 2 Oct 2025 21:44:50 +0800 Subject: [PATCH 1/3] Update CSS selector --- XMOJ.user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XMOJ.user.js b/XMOJ.user.js index 7236b5a8..44942855 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1669,6 +1669,9 @@ async function main() { if (SubmitLink == null) { SubmitLink = document.querySelector('.mt-3 > center:nth-child(1) > a:nth-child(9)'); } + if (SubmitLink == null) { //为什么这个破东西老是换位置 + SubmitLink = document.querySelector('.mt-3 > center:nth-child(1) > a:nth-child(7)'); + } let SubmitButton = document.createElement('button'); SubmitButton.id = 'SubmitButton'; SubmitButton.className = 'btn btn-outline-secondary'; From 081f7f325f02b9104899cc15902d35b94b9a731b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 2 Oct 2025 13:47:30 +0000 Subject: [PATCH 2/3] 2.4.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dbafb19a..13e14585 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmoj-script", - "version": "2.4.0", + "version": "2.4.1", "description": "an improvement script for xmoj.tech", "main": "AddonScript.js", "scripts": { From d0f4549e60cde6b6eb87a562ba08a4fe2f5079d3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 2 Oct 2025 13:47:36 +0000 Subject: [PATCH 3/3] Update version info to 2.4.1 --- Update.json | 11 +++++++++++ XMOJ.user.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Update.json b/Update.json index 2ae346f5..55d41a62 100644 --- a/Update.json +++ b/Update.json @@ -3080,6 +3080,17 @@ } ], "Notes": "请尽快升级至本版本!" + }, + "2.4.1": { + "UpdateDate": 1759412851092, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 861, + "Description": "Update CSS selector" + } + ], + "Notes": "No release notes were provided for this release." } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index 44942855..0cb98cfd 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name XMOJ -// @version 2.4.0 +// @version 2.4.1 // @description XMOJ增强脚本 // @author @XMOJ-Script-dev, @langningchen and the community // @namespace https://github/langningchen