MediaWiki:Common.css

From Openliux
Revision as of 09:12, 25 September 2023 by Amlwikiadmin (talk | contribs) (Created page with "→‎CSS placed here will be applied to all skins: <!-- No [view source] tab for anonymous users --> <?php global $wgUser; if( $wgUser->isAnon() ) { ?> <style type="text/css"> #ca-viewsource { display: none !important; } #ca-talk { display:none!important; } #ca-history { display:none!important; } #ca-watch { display:none!important; } #ca-unwatch { display:none!important; } </style> <?php } ?>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* CSS placed here will be applied to all skins */
<!-- No [view source] tab for anonymous users -->
<?php global $wgUser; if( $wgUser->isAnon() ) { ?>
      <style type="text/css">
        #ca-viewsource { display: none !important; }
        #ca-talk { display:none!important; }
        #ca-history { display:none!important; }
        #ca-watch { display:none!important; }
        #ca-unwatch { display:none!important; }
      </style> 
    <?php } ?>