File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 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" ) ;
You can’t perform that action at this time.
0 commit comments