User:Equazcion/OneClickArchiver


 * Note: This script is no longer being actively developed.

OneClickArchiver allows you to instantly archive a single discussion with a click, via an "archive" link that displays for each section on discussion pages.

Noticeboards and other high-traffic discussion pages, normally archived automatically by bots, have gotten long and less manageable recently due to bot instability. OneClickArchiver was created to better enable experienced editors to clear out old discussions themselves, without having to rely on bots. Any discussion page can be set up to use OneClickArchiver.

Archive page
This script uses a page's MiszaBot configuration (see User:MiszaBot/config) to determine the archive page. You can enable OneClickArchiver support on a page without a MiszaBot configuration (such as your own user talk page) by using Archive basics and including its two required parameters. Clicking the archive link on pages without a MiszaBot configuration or Archive basics (with both required parameters) will not successfully perform an archive.

Further technical notes

 * Activates only on pages that contain an "add section" tab.
 * Only uses the bot configuration's page name and counter number. It will not respect the max archive size, for example, so it will continue archiving to the same page until the counter is changed manually or by an archiving bot.
 * Its speed depends largely on the size of the archive and origin pages. Most pages archive quickly, but noticeboards that tend to get very long, like WP:ANI, can show a significant delay (in the neighborhood of 10-30 seconds, depending on how fast the servers are responding that day). The script code itself executes instantly, but the API's response time for page edits can cause delays.

Installation
To use this script: Copy the line below, then [ [ click here] ], paste the line, and hit the save button.
 * Report any issues on the talk page.
 * Report any issues on the talk page.

fr:Utilisateur:Equazcion/OneClickArchiver