MediaWiki:Common.js

/* 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'        }    } )