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

/* Collapsible Tables */

if ( wgIsArticle || window.location.href.indexOf( 'action=submit' ) > -1 ) { var script  = document.createElement( 'script' ); script.src = '/index.php?title=MediaWiki:Common.js/CollapsibleTables.js&action=raw&ctype=text/javascript'; script.type = 'text/javascript'; document.getElementsByTagName( 'head' )[0].appendChild( script );

hookEvent( 'load', function { new CollapsibleTables; } ); }