User:Nintendorulez/uncyclopedia.js

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

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

  • Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
  • Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
  • Opera, Konqueror and Safari users can just click the Reload button.
  • Chrome: press Ctrl+F5 or Shift+F5
// [[Wikipedia:User:Lupin/popups.js]]

document.write('<script type="text/javascript" src="' 
             + 'http://en.uncyclopedia.co/w/index.php?title=User:Nintendorulez/popups.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');


function tabNames() {
    changeTabText('ca-talk',    'flamewar');
    changeTabText('ca-edit',    'vandalize');
    changeTabText('ca-history', 'history');
    changeTabText('ca-delete',  'huff');
    changeTabText('ca-watch',   'stalk');
    changeTabText('ca-move',    'on wheels');
    changeTabText('ca-protect', 'protect');
};

function changeTabText(id, text) {    
    if (document.getElementById(id)) {
       var tabname = document.getElementById(id).firstChild;
       tabname.removeChild(tabname.firstChild);
       tabname.appendChild(document.createTextNode(text))
       return tabname;
    }
};

window.addEventListener('load', tabNames, false);


// Script from [[User:Lupin/recent2.js]]

document.write('<script type="text/javascript" src="' 
             + 'http://en.uncyclopedia.co/w/index.php?title=User:Lupin/recent2.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');