Jump to content

MediaWiki:Gadget-NoContents-NonArticle.user.css

From Philosophical Research

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ==UserStyle==
@name           Hide TOC - non-article pages  (gadget-NoContents-NonArticle)
@description    Delete TOC on: Ontology, next nine thousand, nickel bank
@namespace      github.com/openstyles/stylus
@version        1.0.2
@author         reverseDragon
==/UserStyle== */

/* MediaWiki has a "hide toc" feature, but it doesn't seem to remember which pages it is being used on, meaning the TOC always comes back on pages where you hid it. Either way, the CSS approach doesn't use its own cookies, and doesn't leave an ugly closed box behind.
This stylesheet combines all the "NoContents" stylesheets for all pages that aren't long-form articles.

To turn this on all the time, go to Preferences and select  gadget-NoContents-NonArticle -   [https://research.moraleconomy.au/index.php?title=Special:Preferences#mw-prefsection-gadgets]
To easily toggle this style on and off, install a user styles add-on, and then open this URL:
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-NoContents-NonArticle.user.css */

.mediawiki #hide-toc
, .mediawiki #hide-toc.ontology-number + #toc, .mediawiki #hide-toc.next-nine-thousand + #toc
, .mediawiki #hide-toc.nickel-bank + #toc
  { display: none; }

/* [[Category:Hue configuration Gadgets]]
previous titles:   [[MediaWiki:Gadget-NoContents-ontology2.user.css]] */