Jump to content

User:Dlrohrer2003/portlet-toggle

From Wikipedia, the free encyclopedia
User script
Portlet Toggle
DescriptionMakes the portlets on the side collapsible.
AuthorDlrohrer2003
StatusStable
UpdatedAugust 8, 2025; 3 months ago (2025-08-08)
SkinsVector, MonoBook, Modern, and Timeless
SourceUser:Dlrohrer2003/portlet-toggle.js, User:Dlrohrer2003/portlet-toggle.css

This Portlet Toggle script makes each portlet's heading clickable so that the respective portlet body can be collapsed leaving only the portlet's heading shown.

Usage

[edit]

To use this script you should add the following line of code to your Special:MyPage/skin.js:

{{subst:lusc|User:Dlrohrer2003/portlet-toggle.js}}

Compatibility

[edit]

This script works with the most skins without much problem. The exception is Cologne Blue, for which support was removed, as I saw little utility in continuing support for an unmaintained skin where not all portlets were made collapsible. There might be a conflict with the Collapsible Nav Gadget when both are in use.

I have tested this script in the Linux version of Mozilla Firefox. If you use a different browser, please leave a note about your experience.

This script also uses cookies so that each portlet can remain in a given state during the normal navigation of Wikipedia.

To do list

[edit]
  • Periodically test this script's compatibility with various browsers and skins