Skip to content

Commit 87ddcc4

Browse files
authored
Merge pull request #948 from XMOJ-Script-dev/remove-problem-translate-button
Remove problem translate button
2 parents dddadbf + 2d0c226 commit 87ddcc4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

XMOJ.user.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name XMOJ
3-
// @version 3.3.4
3+
// @version 3.3.5
44
// @description XMOJ增强脚本
55
// @author @XMOJ-Script-dev, @langningchen and the community
66
// @namespace https://github/langningchen
@@ -2277,6 +2277,11 @@ async function main() {
22772277
localStorage.setItem("UserScript-Problem-" + Temp[i].children[1].innerText + "-Name", Temp[i].children[2].innerText);
22782278
}
22792279
} else if (location.pathname == "/problem.php") {
2280+
let transZhEn = document.getElementById("lang_cn_to_en");
2281+
let transEnZh = document.getElementById("lang_en_to_cn");
2282+
if (transZhEn !== null) transZhEn.remove();
2283+
if (transEnZh !== null) transEnZh.remove();
2284+
22802285
await RenderMathJax();
22812286
if (SearchParams.get("cid") != null && UtilityEnabled("ProblemSwitcher")) {
22822287
let pid = localStorage.getItem("UserScript-Contest-" + SearchParams.get("cid") + "-Problem-" + SearchParams.get("pid") + "-PID");

0 commit comments

Comments
 (0)