User:GW-Shadowphoenix/monobook.js

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++ ) { LangNodes[x].getElementsByTagName('a')[0].innerHTML = localtoEnglish(LangNodes[x].getElementsByTagName('a')[0].innerHTML); } } } addOnloadHook (languagereplace) function localtoGerman(localname) { switch (localname) { case 'Main Page': return 'German'; break; case 'Français': return 'French'; break; case 'Polski': return 'Polish'; break; case '日本語': return 'Japanese'; break; case 'Nederlands': return 'Dutch'; break; case 'Italiano': return 'Italian'; break; case 'Português': return 'Portuguese'; break; case 'Svenska': return 'Swedish'; break; case 'Español': return 'Spanish'; break; case 'Русский': return 'Russian'; break; case '中文': return 'Chinese'; break; case 'Suomi': return 'Finnish'; break; default: return localname; } }

importScript('User:AzaToth/twinkle.js');