MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */	$( "#p-managewiki-sidebar-header" ).remove; if ( !mw.config.get('wgUserGroups').includes('sysop') ) {

if (mw.config.get('wgNamespaceNumber') === 3000 ) { $( "#p-navigation" ).remove; $( "#p-tb" ).remove; $( "#mw-head" ).remove; $( "#subpages" ).remove; $( "#footer-info-lastmod" ).remove; $( "#firstHeading" ).remove; $( "#siteNotice" ).remove; $( "#p-Miraheze" ).remove; $( ".mw-editsection" ).remove; $( ".page-actions-menu" ).remove; $( ".last-modified-bar" ).remove; $( "#footer-info-copyright" ).remove; $( "#p-coll-print_export" ).remove; $( "#p-managewiki-sidebar-header" ).remove; $( "#catlinks" ).remove $( ".minerva-user-navigation" ).remove; $( "#p-donate" ).remove; $( "#footer" ).remove; $( ".subpages" ).remove; }

if (mw.config.get('wgNamespaceNumber') === 0	&& /Main_Page$/.test(mw.config.get( 'wgRelevantPageName' )) ) { $( "#p-navigation" ).remove; $( "#p-tb" ).remove; $( "#mw-head" ).remove; $( "#subpages" ).remove; $( "#footer-info-lastmod" ).remove; $( "#firstHeading" ).remove; $( "#siteNotice" ).remove; $( "#p-Miraheze" ).remove; $( ".mw-editsection" ).remove; $( ".page-actions-menu" ).remove; $( ".last-modified-bar" ).remove; $( "#footer-info-copyright" ).remove; $( "#p-coll-print_export" ).remove; $( "#p-managewiki-sidebar-header" ).remove; $( "#catlinks" ).remove $( ".minerva-user-navigation" ).remove; $( "#p-donate" ).remove; $( "#footer" ).remove; } if (mw.config.get('wgNamespaceNumber') === 0 ) { $( "#p-navigation" ).remove; $( "#p-tb" ).remove; $( "#mw-head" ).remove; $( "#subpages" ).remove; $( "#footer-info-lastmod" ).remove; $( "#firstHeading" ).remove; $( "#siteNotice" ).remove; $( "#p-Miraheze" ).remove; $( ".mw-editsection" ).remove; $( ".page-actions-menu" ).remove; $( ".last-modified-bar" ).remove; $( "#footer-info-copyright" ).remove; $( "#p-managewiki-sidebar-header" ).remove; $( "#catlinks" ).remove $( ".minerva-user-navigation" ).remove; $( "#p-donate" ).remove; $( "#footer" ).remove; } }