MediaWiki:Gadget-NoContents-9k.user.css: Difference between revisions
Appearance
create Gadget for experiment on User:RD/9k/Q34,99, Template:Contents |
hide-toc should be hidden too |
||
| Line 3: | Line 3: | ||
@description Delete TOC on "next nine thousand" pages | @description Delete TOC on "next nine thousand" pages | ||
@namespace github.com/openstyles/stylus | @namespace github.com/openstyles/stylus | ||
@version 1.0. | @version 1.0.1 | ||
@author reverseDragon | @author reverseDragon | ||
==/UserStyle== */ | ==/UserStyle== */ | ||
| Line 13: | Line 13: | ||
https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-NoContents-9k.user.css */ | https://research.moraleconomy.au/index.php?action=raw&title=MediaWiki:Gadget-NoContents-9k.user.css */ | ||
.mediawiki #hide-toc.next-nine-thousand + #toc { display: none; } | .mediawiki #hide-toc, .mediawiki #hide-toc.next-nine-thousand + #toc { display: none; } | ||
/* [[C:Hue configuration Gadgets]] */ | /* [[C:Hue configuration Gadgets]] */ | ||
Latest revision as of 04:01, 23 January 2026
/* ==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]] */