From e509bb55f1b850a00c8776162803cfc33465166c Mon Sep 17 00:00:00 2001 From: def-WA2025 Date: Sun, 15 Mar 2026 17:27:48 +0800 Subject: [PATCH 1/5] Remove Problem Translate Button --- XMOJ.user.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/XMOJ.user.js b/XMOJ.user.js index d8c8c077..f4cc6e6e 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name XMOJ -// @version 3.3.4 +// @version 3.3.5 // @description XMOJ增强脚本 // @author @XMOJ-Script-dev, @langningchen and the community // @namespace https://github/langningchen @@ -2277,6 +2277,11 @@ async function main() { localStorage.setItem("UserScript-Problem-" + Temp[i].children[1].innerText + "-Name", Temp[i].children[2].innerText); } } else if (location.pathname == "/problem.php") { + let transZhEn = document.getElementById("lang_cn_to_en"); + let transEnZh = document.getElementById("lang_en_to_cn"); + if (transZhEn !== null) await transZhEn.remove(); + if (transEnZh !== null) await transEnZh.remove(); + await RenderMathJax(); if (SearchParams.get("cid") != null && UtilityEnabled("ProblemSwitcher")) { let pid = localStorage.getItem("UserScript-Contest-" + SearchParams.get("cid") + "-Problem-" + SearchParams.get("pid") + "-PID"); From 2d0c2262fb46b254acf9bc20f81c8474fef54dae Mon Sep 17 00:00:00 2001 From: def-WA2025 Date: Sun, 15 Mar 2026 17:37:25 +0800 Subject: [PATCH 2/5] Remove Problem Translate Button --- XMOJ.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XMOJ.user.js b/XMOJ.user.js index f4cc6e6e..275ef481 100644 --- a/XMOJ.user.js +++ b/XMOJ.user.js @@ -2279,8 +2279,8 @@ async function main() { } else if (location.pathname == "/problem.php") { let transZhEn = document.getElementById("lang_cn_to_en"); let transEnZh = document.getElementById("lang_en_to_cn"); - if (transZhEn !== null) await transZhEn.remove(); - if (transEnZh !== null) await transEnZh.remove(); + if (transZhEn !== null) transZhEn.remove(); + if (transEnZh !== null) transEnZh.remove(); await RenderMathJax(); if (SearchParams.get("cid") != null && UtilityEnabled("ProblemSwitcher")) { From ffc4fcf2dd849ab77da1c287a9218b20d41d2080 Mon Sep 17 00:00:00 2001 From: Shan Wenxiao Date: Sun, 15 Mar 2026 18:03:53 +0800 Subject: [PATCH 3/5] Add version 3.3.5 update details to Update.json Add update information for version 3.3.5 including notes and description. Signed-off-by: Shan Wenxiao --- Update.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Update.json b/Update.json index 1b7716ab..f9a5a633 100644 --- a/Update.json +++ b/Update.json @@ -3466,6 +3466,17 @@ } ], "Notes": "修复了未开启「极简黑白界面风格」时,比赛排行榜表头仍显示为黑白样式的问题 (#932)" + }, + "3.3.5": { + "UpdateDate": 1773559861504, + "Prerelease": true, + "UpdateContents": [ + { + "PR": 948, + "Description": "Remove problem translate button" + } + ], + "Notes": "" } } -} \ No newline at end of file +} From 156f1ba6d41249a8d766e8af276c26f235703c46 Mon Sep 17 00:00:00 2001 From: Shan Wenxiao Date: Sun, 15 Mar 2026 18:08:44 +0800 Subject: [PATCH 4/5] Update Update.json Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> Signed-off-by: Shan Wenxiao --- Update.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Update.json b/Update.json index f9a5a633..00700095 100644 --- a/Update.json +++ b/Update.json @@ -3476,7 +3476,7 @@ "Description": "Remove problem translate button" } ], - "Notes": "" + "Notes": "No release notes were provided for this release." } } } From a997348777943a6fbd5210b4abf099a49025cb61 Mon Sep 17 00:00:00 2001 From: Shan Wenxiao Date: Sun, 15 Mar 2026 18:09:14 +0800 Subject: [PATCH 5/5] Bump version from 3.3.4 to 3.3.5 Signed-off-by: Shan Wenxiao --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 47509807..6c733c70 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xmoj-script", - "version": "3.3.4", + "version": "3.3.5", "description": "an improvement script for xmoj.tech", "main": "AddonScript.js", "scripts": {