User:Ellery/monobook.js

語出維基大典,自由之大典矣

Note: After saving, you may have to bypass your browser's cache to see the changes. Mozilla / Firefox / Safari: hold down Shift while clicking Reload, or press Ctrl-Shift-R (Cmd-Shift-R on Apple Mac); IE: hold Ctrl while clicking Refresh, or press Ctrl-F5; Konqueror:: simply click the Reload button, or press F5; Opera users may need to completely clear their cache in Tools→Preferences.

function setDocumentLang(lang){
        var d=document.documentElement;
        d.setAttribute("xml:lang",lang);
        d.setAttribute("lang",lang);
}
setDocumentLang("zh-tw");//臺灣、香港將中間的"zh-cn"分別換成"zh-tw"或"zh-hk"
Views