User:Equazcion/OneClickArchiver

From Wikipedia, the free encyclopedia
User script
OneClickArchiver
Archive progress screenshot (bottom, click to see full).
The "Archive" link (top) shows at the extreme
right side of the screen.
DescriptionAdds archive links to discussions, allowing one-click archiving of individual sections
Author(s)Equazcion
StatusStable
UpdatedOctober 22, 2013; 10 years ago (2013-10-22)
Browser supportFirefox, Chrome, Opera
Skin supportVector
SourceUser:Equazcion/OneClickArchiver.js
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.

Public noticeboards should only be archived by experienced editors who understand when archiving is or is not appropriate. Respect a public page's posted archiving policy regarding how long its discussions must be inactive before they are archived.
If you do not know how to do this, do not attempt to archive the page.

Archive page[edit]

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[edit]

  • 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[edit]

To use this script: Copy the line below, then [click here], paste the line, and hit the save button.

  • {{subst:iusc|User:Equazcion/OneClickArchiver.js}}
  • Report any issues on the talk page.