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 19:43, 20 November 2007 (Fixed tabs some more). 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';
	}
	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);