User:Assume a=a/links.js

From RationalWiki
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
if ( window.idsToRename === undefined ) {
    var idsToRename = new Array (
        { name : 'ca-nstab-help', text : 'help' },
        { name : 'ca-nstab-main', text : 'page' },
        { name : 'ca-nstab-special', text : 'special' },
        { name : 'ca-nstab-project', text : 'project' },
        { name : 'ca-nstab-user', text : 'user' },
        { name : 'ca-edit', text : 'edit' },
        { name : 'ca-viewsource', text : 'source' },
        { name : 'ca-history', text : 'hist' },
        { name : 'ca-talk', text : 'talk' },
        { name : 'pt-userpage', text : 'assume a=a' },
        { name : 'pt-mytalk', text : 'talk' },
        { name : 'pt-preferences', text : 'preferences' },
        { name : 'pt-watchlist', text : 'watchlist' },
        { name : 'pt-mycontris', text : 'contributions' }
    );
}

function fixtabs() {
    for(i = 0; i < idsToRename.length; i++) {
        if(document.getElementById(idsToRename[i].name)) {
            document.getElementById(idsToRename[i].name).firstChild.innerHTML = idsToRename[i].text;
        }
    }
}
 
addOnloadHook(fixtabs);