User:Irukaza/common.js:修订间差异
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
imported>=海豚= 无编辑摘要 |
||
(未显示同一用户的1个中间版本) | |||
第1行: | 第1行: | ||
document.getElementById(" | if (window.localStorage.getItem('Traditional Chinese')) { | ||
if (mw.config.values.wgAction == "view" || mw.config.values.wgAction == "history"){ | |||
document.getElementById("bodyContent").innerHTML=window.newtrad2simcore(" "+document.getElementById("bodyContent").innerHTML).substr(1); | |||
window.origHeadElem.innerHTML=window.newtrad2simcore(" "+window.origHeadElem.innerHTML).substr(1); | |||
var convtag=document.getElementById("ca-conv-text"); | |||
convtag.parentElement.innerHTML="<a href=\"javascript:window.simrestorem()\" title=\"復原\" id=\"ca-conv-text\">港台繁體<\/a>"; | |||
} | |||
} |
2021年8月1日 (日) 14:04的版本
if (window.localStorage.getItem('Traditional Chinese')) {
if (mw.config.values.wgAction == "view" || mw.config.values.wgAction == "history"){
document.getElementById("bodyContent").innerHTML=window.newtrad2simcore(" "+document.getElementById("bodyContent").innerHTML).substr(1);
window.origHeadElem.innerHTML=window.newtrad2simcore(" "+window.origHeadElem.innerHTML).substr(1);
var convtag=document.getElementById("ca-conv-text");
convtag.parentElement.innerHTML="<a href=\"javascript:window.simrestorem()\" title=\"復原\" id=\"ca-conv-text\">港台繁體<\/a>";
}
}