Jump to content

MediaWiki:Gadget-NoContents-NonArticle.user.css

From Philosophical Research
Revision as of 11:51, 2 February 2026 by Reversedragon (talk | contribs) (combine two toc stylesheets)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 - Ontology & 9k pages  (gadget-NoContents-ontology)
@description    Delete TOC on Ontology pages
@namespace      github.com/openstyles/stylus
@version        1.0.1
@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 cookies, and doesn't leave an ugly closed box behind.
This stylesheet combines the Ontology and 9k stylesheets.

To turn this on all the time, go to Preferences and select  gadget-NoContents-ontology -   [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-ontology.user.css */

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

/* [[C:Hue configuration Gadgets]] */