User:Andrewds1021/CategoryExhibitionAutoAdvance

This solution was created in response to Thread:1736387.

The purpose of this script is to implement auto-scrolling of the pages gallery present when viewing a category page using exhibition mode. On page load, the script checks the namespace and for the presence of the paginator (the thing that scrolls the gallery). If both are as expected, the script continues initial setup and then starts running as specified by the configureation parameters. Control buttons are added below the paginator which allow the user to change the direction of or stop the scrolling. The paginator can still be used while auto-scrolling is active. The script will wrap around if there are no more pages in the specified scrolling direction.

Configuration
To customize the configuration, the script's settings object must be used. To create the script's settings object, place the following before the scipt's import. To set the parameters, assign the desired value to the corresponding property of the script's settings object. Assignment of these values must be done after creation of the settings object but before the script is imported. The general way to assign a parameter value is as follows: Replace  with the name of the actual parameter and replace   with the desired value.

Here is a list of the parameters recognized by the script: