User:Werdan7/monobook.js
From Simple English Wikipedia, the free encyclopedia
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.
// [[User:Lupin/popups.js]] document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); function renameTabA() { try { var Node = document.getElementById( 'ca-edit' ).firstChild; if ( Node.textContent ) { Node.textContent = 'edit'; } else if ( Node.innerText ) { Node.innerText = 'edit'; } else { Node.replaceChild( Node.firstChild, document.createTextNode( 'edit' ) ); } } catch(e) { } } addOnloadHook( renameTabA ) function renameTabB() { try { var Node = document.getElementById( 'pt-userpage' ).firstChild; if ( Node.textContent ) { Node.textContent = 'my user page'; } else if ( Node.innerText ) { Node.innerText = 'my user page'; } else { Node.replaceChild( Node.firstChild, document.createTextNode( 'my user page' ) ); } } catch(e) { } } addOnloadHook( renameTabB )