From 84054aa0959963d827e998592a97ebe1cbc9999b Mon Sep 17 00:00:00 2001 From: boomzero Date: Sat, 4 Oct 2025 11:32:31 +0800 Subject: [PATCH 1/3] Add tooltip for ProblemSwitcher --- XMOJ.user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XMOJ.user.js b/XMOJ.user.js index f10f0fa4..f6e4f285 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1695,7 +1695,7 @@ async function main() { if (problemList[i].url === location.href) { activeClass = "active"; } - problemSwitcher.innerHTML += `${buttonText}`; + problemSwitcher.innerHTML += `${buttonText}`; } document.body.appendChild(problemSwitcher); } From a0727e2595abf8b84d1b431cd863d0e0b5b2d98a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 4 Oct 2025 03:35:58 +0000 Subject: [PATCH 2/3] 2.4.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a3ac3141..d377dcd3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmoj-script", - "version": "2.4.5", + "version": "2.4.6", "description": "an improvement script for xmoj.tech", "main": "AddonScript.js", "scripts": { From 822bb4ded3b3d7ebf03c68cadfd9e40b7c3eca0a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 4 Oct 2025 03:36:03 +0000 Subject: [PATCH 3/3] Update version info to 2.4.6 --- Update.json | 11 +++++++++++ XMOJ.user.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Update.json b/Update.json index 9c4a525a..f47aa41b 100644 --- a/Update.json +++ b/Update.json @@ -3135,6 +3135,17 @@ } ], "Notes": "为什么这个破东西老是换位置" + }, + "2.4.6": { + "UpdateDate": 1759548958578, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 871, + "Description": "Add tooltip for ProblemSwitcher" + } + ], + "Notes": "现在, 你只需要将鼠标悬浮在比赛题目切换器上方, 即可查看题目名称" } } } \ No newline at end of file diff --git a/XMOJ.user.js b/XMOJ.user.js index f6e4f285..5db634a6 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name XMOJ -// @version 2.4.5 +// @version 2.4.6 // @description XMOJ增强脚本 // @author @XMOJ-Script-dev, @langningchen and the community // @namespace https://github/langningchen