MediaWiki:Common.js: Difference between revisions
(hide main page title) |
(No difference)
|
Revision as of 14:33, 12 April 2017
/* Any JavaScript here will be loaded for all users on every page load. */ var isDiff = mw.util.getParamValue('diff') || mw.util.getParamValue('oldid'); if (mw.config.get('wgIsMainPage') && mw.config.get('wgIsArticle') && !isDiff){ mw.util.addCSS('h1.firstHeading, div#siteNotice { display: none !important; }'); }