CollapseGlobalNavButton

CollapseGlobalNavButton is a script that adds a button to the global navigation to collapse it. The collapsed global navigation only shows the preferences dropdown and the notifications section. 
This script is compatible with the following:
* GamepediaTheme
* OldFandomColors
* OldWikiaBar
== ==
Optionally, you may want to install the stylesheet too as the stylesheet is dynamically loaded. If you are using OldWikiaBar, you need to install another stylesheet called CollapseGlobalNavButton.css/compatibility.css.
=== Other script compatibility stylesheet ===
== Extending ==
If you want to hook into the collapse/uncollapse event of this script, you can use the dev.cgnb.change hook or if you want to listen for when the collapsing animation is done you can use dev.cgnb.changeend. For example:
There's also a loaded event called dev.cgnb.loaded:
If you just want a pure CSS class, you can use the body.global-navigation-collapsed class.
== Future updates ==
* Integration with any scripts that modify the global navigation.
* Support for EmeraldGlobalNav.