MediaWiki:Gadget-NoContents-9k.user.css
Appearance
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 - 9k (gadget-NoContents-9k)
@description Delete TOC on "next nine thousand" 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.
To turn this on all the time, go to Preferences and select gadget-NoContents-9k - [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-9k.user.css */
.mediawiki #hide-toc, .mediawiki #hide-toc.next-nine-thousand + #toc { display: none; }
/* [[C:Hue configuration Gadgets]] */