User:TheJosh/Scripts/New Page Patroller


 * See also New pages patrol

Adds a box in the sidebar that uses AJAX to update a list of new pages 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 'npp_show_box'.

If people want it, I can create a Recent Changes version too.

This works really well with WP:TW which has tabs for things like speedy delete.

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

Installation
To install, add the following to your monobook.js (or other skin js if you use it): importScript('User:TheJosh/Scripts/NewPagePatrol.js');

Settings
This box has three settings. To use a setting, place the setting variable underneath the importScript line.
 * npp_enabled
 * The default behavior of the box (enabled or disabled) if no cookie is set
 * Default:
 * Possible values:  or
 * Example:  To make the box not show by default


 * npp_num_pages
 * The number of pages to show in the box
 * Default:
 * Possible values: Any number between 1 and 50
 * Example:  To make the box show 5 links at a time


 * npp_refresh
 * The refresh rate of the box, in seconds. Decimals allowed
 * Default:
 * Possible values: Any number above 2 (to not put too much strain on the servers)
 * Example:  To make the box refresh every 10 seconds.

Compatibility
Only tested on Firefox (2.0) and Monobook. If it works for anyone else using any other combo, Please tell me.

Userbox
You can also use this box if you want: