User:Irukaza/common.js
跳到导航
跳到搜索
注意:这类代码页面在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- 按住
CTRL+SHIFT+DEL 或 ⌘-Shift-R
来清除缓存! - 或尝试在地址栏的地址最后添加代码
?_=1
来访问最新页面。 - 你还可以在设置中勾选小工具在页面右上角添加清除缓存按钮!
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>";
}
}