Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Update.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
}
}
7 changes: 6 additions & 1 deletion XMOJ.user.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Loading