MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
#ca-history { display: none !important;} | #ca-history { display: none !important;} | ||
#ca-watch { display: none !important; } | #ca-watch { display: none !important; } | ||
$wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous'; | |||
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; | |||
} |
Revision as of 09:29, 5 December 2022
/* CSS placed here will be applied to all skins */ #ca-nstab-main { display: none !important; } #ca-talk { display: none !important; } #ca-history { display: none !important;} #ca-watch { display: none !important; } $wgHooks['SkinTemplateSetupPageCss'][] = 'wfHideVariousTabsFromAnonymous'; 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; }