Jump to content

User:Addshore/Changetitles.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Addshore (talk | contribs) at 08:05, 6 November 2008 (Adding script). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
function changetitles() {
    if(!document.getElementById) return;
    document.getElementById('pt-mytalk').firstChild.innerHTML = 'my talk';
    document.getElementById('pt-preferences').firstChild.innerHTML = 'prefs';
    document.getElementById('pt-watchlist').firstChild.innerHTML = 'Watch';
    document.getElementById('pt-mycontris').firstChild.innerHTML = 'Contribs';
    document.getElementById('pt-logout').firstChild.innerHTML = 'L-O';
    if(document.getElementById('ca-nstab-user'))
        document.getElementById('ca-nstab-user').firstChild.innerHTML = 'user';
    if(document.getElementById('ca-talk'))
        document.getElementById('ca-talk').firstChild.innerHTML ='talk';
    if(document.getElementById('ca-edit'))
        document.getElementById('ca-edit').firstChild.innerHTML = 'edit';
    if(document.getElementById('ca-history'))
        document.getElementById('ca-history').firstChild.innerHTML = 'hist';
}
 
if (window.addEventListener) window.addEventListener("load",changetitles,false);
else if (window.attachEvent) window.attachEvent("onload",changetitles);