From e6ca3d73fa51c79d233980b31bc0416775b45526 Mon Sep 17 00:00:00 2001 From: boomzero Date: Fri, 3 Oct 2025 18:28:33 +0800 Subject: [PATCH 1/3] Update CSS selector (#868) --- XMOJ.user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/XMOJ.user.js b/XMOJ.user.js index 69dfca7f..e0cb1829 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1726,6 +1726,9 @@ async function main() { if (SubmitLink == null) { //为什么这个破东西老是换位置 SubmitLink = document.querySelector('.mt-3 > center:nth-child(1) > a:nth-child(7)'); } + if (SubmitLink == null) { //tmd又换位置 + SubmitLink = document.querySelector('.mt-3 > center:nth-child(1) > a:nth-child(8)'); + } let SubmitButton = document.createElement('button'); SubmitButton.id = 'SubmitButton'; SubmitButton.className = 'btn btn-outline-secondary'; From a6d9d067fb6597a62d4a88ef59065bc4ccad518b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 3 Oct 2025 10:30:12 +0000 Subject: [PATCH 2/3] 2.4.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 169470fd..a3ac3141 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmoj-script", - "version": "2.4.4", + "version": "2.4.5", "description": "an improvement script for xmoj.tech", "main": "AddonScript.js", "scripts": { From 76864317db669c04876971159eca757f189452cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 3 Oct 2025 10:30:18 +0000 Subject: [PATCH 3/3] Update version info to 2.4.5 --- Update.json | 11 +++++++++++ XMOJ.user.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Update.json b/Update.json index 96f64b2d..9c4a525a 100644 --- a/Update.json +++ b/Update.json @@ -3124,6 +3124,17 @@ } ], "Notes": "#860 ..." + }, + "2.4.5": { + "UpdateDate": 1759487413226, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 869, + "Description": "Update CSS selector (again...)" + } + ], + "Notes": "为什么这个破东西老是换位置" } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index e0cb1829..f10f0fa4 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name XMOJ -// @version 2.4.4 +// @version 2.4.5 // @description XMOJ增强脚本 // @author @XMOJ-Script-dev, @langningchen and the community // @namespace https://github/langningchen