Difference between revisions of "MediaWiki:Common.css"

From Omi Oh My AI
Line 1: Line 1:
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous';
div.vectorTabs ul li#ca-history {
 
  visibility: hidden;
function wfHideVariousTabsFromAnonymous( &$hidetabcss ) {
global $wgUser;
 
if ( !$wgUser->isLoggedIn() ) {
$hidetabcss .= 'li#ca-history, li#ca-viewsource, li#ca-edit, li#ca-talk, .vectorMenu { display: none; }';
}
 
return true;
}
}
#filehistory { display: none; } /* Hides the "File history" header */
#filehistory { display: none; } /* Hides the "File history" header */
#mw-imagepage-section-filehistory { display: none; } /* Hides the "file history" table */
#mw-imagepage-section-filehistory { display: none; } /* Hides the "file history" table */

Revision as of 03:37, 11 July 2022

div.vectorTabs ul li#ca-history {
   visibility: hidden;
}
#filehistory { display: none; } /* Hides the "File history" header */
#mw-imagepage-section-filehistory { display: none; } /* Hides the "file history" table */