Difference between revisions of "User:Daniil/valve.js"
(new script) |
(Fix) |
||
Line 4: | Line 4: | ||
/* Following script localize Main Page link to you native language */ | /* Following script localize Main Page link to you native language */ | ||
var curlang = "ru" // Replace with your langauage | var curlang = "ru" // Replace with your langauage | ||
− | document.getElementById("p-logo").childNodes[1].href = "/wiki/Main_Page/" + curlang; | + | function changeLogoLang () { |
+ | document.getElementById("p-logo").childNodes[1].href = "/wiki/Main_Page/" + curlang; | ||
+ | } | ||
+ | |||
+ | addOnloadHook(changeLogoLang); |
Latest revision as of 07:56, 14 June 2011
/* Wikify script*/ importScript("User:Daniil/wikify.js"); /* Following script localize Main Page link to you native language */ var curlang = "ru" // Replace with your langauage function changeLogoLang () { document.getElementById("p-logo").childNodes[1].href = "/wiki/Main_Page/" + curlang; } addOnloadHook(changeLogoLang);