Jump to content

User:Salam32/monobook.js

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Salam32 (talk | contribs) at 15:16, 20 November 2009. The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.
importScript('User:TheDJ/Gadget-HotCat.js');
importScript('User:AzaToth/twinkle.js');
importScript('User:Ioeth/friendly.js');
importScript('User:Animum/liveclock.js');

function fixtabs() 
{ 
	if(document.getElementById('ca-delete')) {
		document.getElementById('ca-delete').firstChild.innerHTML = '[d]';
	}  
	if(document.getElementById('ca-move')) {
		document.getElementById('ca-move').firstChild.innerHTML = '[m]';
	}
	if(document.getElementById('ca-watch')) {
		document.getElementById('ca-watch').firstChild.innerHTML = '[w]';
	}
	if(document.getElementById('ca-uwatch')) {
		document.getElementById('ca-watch').firstChild.innerHTML = '[uw]';
	}  
	wgAjaxWatch.watchMsg = '[w]';
	wgAjaxWatch.unwatchMsg = '[uw]';	
	if(document.getElementById('ca-edit')) {
		document.getElementById('ca-edit').firstChild.innerHTML = 'Edit';
	}
	if(document.getElementById('ca-talk')) {
		document.getElementById('ca-talk').firstChild.innerHTML = 'Talk';
	}
	if(document.getElementById('ca-protect')) {
		document.getElementById('ca-protect').firstChild.innerHTML = 'P (off)';
	}
	if(document.getElementById('ca-unprotect')) {
		document.getElementById('ca-unprotect').firstChild.innerHTML = 'P (on)';
	}
}
addOnloadHook(fixtabs);