User:TheJosh/Scripts/New User Patroller
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:
trueorfalse - 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:
- Firefox 2
- Internet Exploiter 6
- Camino 1.5.1 (or any other Gecko browser for that matter)
- Opera
Other versions of these browsers, or in fact other browsers may work, as long as the browser supports AJAX.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.