User:Cccmeat/vector.js

importScript("User:PleaseStand/hide-vector-sidebar.js");

languagereplace function languagereplace { if (document.getElementById('p-lang')) { var LangNodes=document.getElementById('p-lang').getElementsByTagName('ul')[0].getElementsByTagName('li'); for( var x = 0; x < LangNodes.length; x++ ) { if (LangNodes[x].getElementsByTagName('a')[0].innerHTML == "中文") {			 document.write(LangNodes[x].getElementsByTagName('a')[0].href); mw.util.addPortletLink("p-cactions", LangNodes[x].getElementsByTagName('a')[0].href, "中文的啦", "Langgg", "安安"); }		}	} }