Jump to content

User:Rdsmith4/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Rdsmith4 (talk | contribs) at 03:29, 26 February 2005. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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 changeLinks(){
    if(!document.getElementById) return;
    document.getElementById('pt-mytalk').firstChild.innerHTML = 'talk';
    document.getElementById('pt-watchlist').firstChild.innerHTML = 'watchlist';
    document.getElementById('pt-mycontris').firstChild.innerHTML = 'contributions';
}
function addPurge(){
    ta['ca-purge'] = ['g', 'Purge the internal cache for this page'];
    if(!document.getElementById) return;
    var x = document.getElementById('ca-history');
    if(!x) return;
    x = x.children[0].href.replace(/=history/, "=purge");
    var y = document.createElement('LI');
    y.id = 'ca-purge';
    var z = document.createElement('A');
    z.href = x;
    z.appendChild(document.createTextNode('Purge'));
    y.appendChild(z);
    document.getElementById('p-cactions').children[1].appendChild(y);
}