GlobalNavBehavior

GlobalNavBehavior is a script that allows you to change how the global navigation behaves when you scroll. By default, the script shows the global navigation when scrolling up and hides it when scrolling down.

Personal Installation
Before installing, please ensure that you have enabled personal JavaScript in the "Under the Hood" section of your preferences.

To install the script for personal use, add this to your personal JavaScript (on the wiki you want to use it) or global JavaScript:

Changing Scroll Behavior
By default, GlobalNavBehavior smoothly hides the global navigation when scrolling down and shows it when scrolling up. This can be changed with the script's configuration.

How to Configure
Place one of the configurations below above the  statement in your personal JavaScript. For example:

Only Show Global Nav at Page Top
The global navigation is only shown at the top of the page and is hidden whether you scroll up or down.

Show While Scrolling Up, Hide While Scrolling Down
This is the default behavior of GlobalNavBehavior, so no configuration is necessary!

Always Show Global Nav
The global navigation is always shown, no matter which direction you scroll. This is the default behavior of the global navigation without this script, so installing it shouldn't be necessary. But if you really need to configure the script this way, you can use this code: