User:TheJosh/Scripts/New User Patroller

From wikishia

Adds a box in the sidebar that uses AJAX to update a list of new users every 5 seconds.

You can enable or disable it using the provided link. The default is for the box to be disabled. The setting is stored in a session cookie (setting is lost when you close your browser). The cookie is called 'nup_show_box'.

View the source. Its probably rather shocking... User:TheJosh/Scripts/NewUserPatrol.js

The links will take you to the edit of the talk page of the user - perfect for a welcome message.

Installation

To install, add the following to your monobook.js (or other skin js if you use it):

importScript('User:TheJosh/Scripts/NewUserPatrol.js');

Settings

This box has three settings. To use a setting, place the setting variable underneath the importScript line.

nup_enabled
The default behavior of the box (enabled or disabled) if no cookie is set
Default: false
Possible values: true or false
Example: nup_enabled = false; To make the box not show by default
nup_num_pages
The number of pages to show in the box
Default: 10
Possible values: Any number between 1 and 50
Example: nup_num_pages = 5; To make the box show 5 links at a time
nup_refresh
The refresh rate of the box, in seconds. Decimals allowed
Default: 5
Possible values: Any number above 2 (to not put too much strain on the servers)
Example: nup_refresh = 10; To make the box refresh every 10 seconds.

Compatibility

This script has been known to work on:

Other versions of these browsers, or in fact other browsers may work, as long as the browser supports AJAX.