This user subpage is currently inactive and is retained for historical reference. If you want to revive discussion regarding the subject, you might try contacting the user in question or seeking broader input via a forum such as the village pump. |
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'.
This works really well with WP:TW which has tabs for things like speedy delete.
Thanks to Bradv for his code for making the lines yellow if they have not been patrolled yet.
Thanks to Alex Smotrov for pointing out the issue with idle time requests.
View the source. Its probably rather shocking... User:TheJosh/Scripts/NewPagePatrol.js
To install, add the following to your monobook.js (or other skin js if you use it):
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
This box has three settings. To use a setting, place the setting variable underneath the importScript line.
false
true
or false
npp_enabled = true;
To make the box show by default10
npp_num_pages = 5;
To make the box show 5 links at a time5
npp_refresh = 10;
To make the box refresh every 10 seconds.60
npp_num_idle_req = 120;
To make the box be disabled after 120 requests. (10 mins with a npp_refresh = 5
)Works for the following skins:
Support for other skins can be added fairly easily.
This script should work on anything. I have received a number of reports from users indicting support of various browsers, including:
You can also use this box if you want:
This user is a newpage patroller who uses the New Page Patroller script. |