Jump to content

User:Ioeth/friendlytabs.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ioeth (talk | contribs) at 20:55, 20 November 2007 (fixed bug). 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 fixtabs() 
{
	if(document.getElementById('ca-nstab-help')) {
		document.getElementById('ca-nstab-help').firstChild.innerHTML = 'Help';
	}
	if(document.getElementById('ca-nstab-main') && document.getElementById('ca-nstab-main').firstChild.innerHTML == 'Main Page') {
		document.getElementById('ca-nstab-main').firstChild.innerHTML = 'Main';
	}
	if(document.getElementById('ca-nstab-special')) {
		document.getElementById('ca-nstab-special').firstChild.innerHTML = 'Special';
	}
	if(document.getElementById('ca-nstab-project')) {
		document.getElementById('ca-nstab-project').firstChild.innerHTML = 'Project';
	}
	if(document.getElementById('ca-nstab-user')) {
		document.getElementById('ca-nstab-user').firstChild.innerHTML = 'User';
	}
	if(document.getElementById('ca-edit')) {
		document.getElementById('ca-edit').firstChild.innerHTML = 'Edit';
	}
	if(document.getElementById('ca-talk')) {
		document.getElementById('ca-talk').firstChild.innerHTML = 'Talk';
	}
}
 
addOnloadHook(fixtabs);