imported>=海豚= |
|
第1行: |
第1行: |
| window.HanTSVersion="1139833";
| | -{(C85) [Quzilax] Geiger Counter 2 [Chinese] [final個人漢化]}- |
| window.origHTML=document.getElementById("bodyContent").innerHTML;
| |
| window.origHeadElem = document.getElementById("firstHeading") || document.getElementById("section_0");
| |
| window.origHeadHTML=window.origHeadElem.innerHTML;
| |
| if ( mw.config.get( 'wgPageName' ) != '特殊:最近更改' ){
| |
| window.newtrad2sim=function(){
| |
| var listobj=pview.getElementsByTagName("ul")[0];
| |
| if(listobj.parentNode.className.indexOf("emptyPortlet")<0){
| |
| 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");
| |
| if(!convtag)
| |
| listobj.innerHTML="<li id=\"ca-conv\"><span><a href=\"javascript:window.simrestore()\" title=\"复原\" id=\"ca-conv-text\">港台繁体<\/a><\/span><\/li>"+listobj.innerHTML;
| |
| else
| |
| convtag.innerHTML="<span><a href=\"javascript:window.simrestore()\" title=\"复原\" id=\"ca-conv-text\">港台繁体<\/a><\/span>";
| |
| }
| |
| };
| |
|
| |
|
| window.newtrad2simm=function(){
| | [[分类: 作者: クジラックス]] |
| 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>";
| |
| };
| |
| | |
| | |
| window.simrestore=function(){
| |
| var listobj=pview.getElementsByTagName("ul")[0];
| |
| if(listobj.parentNode.className.indexOf("emptyPortlet")<0){
| |
| document.getElementById("bodyContent").innerHTML=window.origHTML;
| |
| window.origHeadElem.innerHTML=window.origHeadHTML;
| |
| var convtag=document.getElementById("ca-conv");
| |
| if(!convtag)
| |
| listobj.innerHTML="<li id=\"ca-conv\"><span><a href=\"javascript:window.newtrad2sim()\" title=\"繁体中文\" id=\"ca-conv-text\">大陆简体<\/a><\/span><\/li>"+listobj.innerHTML;
| |
| else
| |
| convtag.innerHTML="<span><a href=\"javascript:window.newtrad2sim()\" title=\"繁体中文\" id=\"ca-conv-text\">大陆简体<\/a><\/span>";
| |
| }
| |
| };
| |
| | |
| window.simrestorem=function(){
| |
| document.getElementById("bodyContent").innerHTML=window.origHTML;
| |
| window.origHeadElem.innerHTML=window.origHeadHTML;
| |
| var convtag=document.getElementById("ca-conv-text");
| |
| convtag.parentElement.innerHTML="<a href=\"javascript:window.newtrad2simm()\" title=\"繁体中文\" id=\"ca-conv-text\">大陆简体<\/a>";
| |
| };
| |
| | |
| if(document.getElementById("mw-mf-main-menu-button")){ //There should be a better way to check this
| |
| var convtag=document.getElementById("ca-conv-text");
| |
| if(!convtag){
| |
| spanobj=document.createElement("span");
| |
| srch=document.getElementById("ca-watch");
| |
| srch.parentElement.insertBefore(spanobj,srch);
| |
| spanobj.innerHTML="<a href=\"#\" onclick=\"window.newtrad2simm()\" title=\"繁体中文(测试1\" id=\"ca-conv-text\">大陆简体(测试2<\/a>";
| |
| }
| |
| }else{
| |
| var pview=document.getElementById("p-namespaces");
| |
| if(pview&&pview.className.search("vector")>=0&&(window.location.search.search("action=edit")<0||window.location.search.search("action=view")>=0)){
| |
| var listobj=pview.getElementsByTagName("ul")[0];
| |
| if(listobj.parentNode.className.indexOf("emptyPortlet")<0){
| |
| var convtag=document.getElementById("ca-conv");
| |
| if(!convtag)
| |
| listobj.innerHTML="<li id=\"ca-conv\"><span><a onclick=\"javascript:window.newtrad2sim()\" title=\"繁体中文\" id=\"ca-conv-text\">大陆简体<\/a><\/span><\/li>"+listobj.innerHTML;
| |
| else
| |
| convtag.innerHTML="<span><a href=\"javascript:window.newtrad2sim()\" title=\"繁体中文\" id=\"ca-conv-text\">大陆简体<\/a><\/span>";
| |
| }
| |
| }
| |
| }
| |
| }
| |