MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Greenpickle (talk | contribs) No edit summary |
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: →Rename Main Page tab: if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') addO...") |
||
Line 1: | Line 1: | ||
/* | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
/* Rename Main Page tab */ | |||
if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page') | |||
addOnloadHook(function () { | |||
var nstab = document.getElementById('ca-nstab-main') | |||
if (nstab && wgUserLanguage=='en') { | |||
while (nstab.firstChild) nstab = nstab.firstChild | |||
nstab.nodeValue = 'Main Page' | |||
function | |||
var | |||
if ( | |||
} | } | ||
} | } | ||
) | |||
Revision as of 18:14, September 13, 2010
/* Any JavaScript here will be loaded for all users on every page load. */
/* Rename Main Page tab */
if (wgPageName == 'Main_Page' || wgPageName == 'Talk:Main_Page')
addOnloadHook(function () {
var nstab = document.getElementById('ca-nstab-main')
if (nstab && wgUserLanguage=='en') {
while (nstab.firstChild) nstab = nstab.firstChild
nstab.nodeValue = 'Main Page'
}
}
)