diff --git a/Update.json b/Update.json index 1b7716ab..00700095 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 release notes were provided for this release." } } -} \ No newline at end of file +} diff --git a/XMOJ.user.js b/XMOJ.user.js index d8c8c077..275ef481 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) transZhEn.remove(); + if (transEnZh !== null) 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"); 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": {