User:WhitePhosphorus/all-in-one



All-in-one.js is a script which allows admins to rollback, block, mass delete, and/or revision delete in several clicks on the same page.

This documentation is intended for User:WhitePhosphorus/js/all-in-one.js. It is not designed for zh:User:WhitePhosphorus/js/all-in-one.js, which is a legacy script focusing more on some Chinese LTAs and lacks extendability.

How to install
Append the following to your common.js:

How to use
You will see an "All-in-one" link in the "" menu at the top of any pages, if the script was successfully installed. After clicking it, a form will appear for you to adjust settings. When you use all-in-one on contribution page or log page, the current username (wgRelevantUserName) will be automatically filled in.

Add your own package
A package means a series of administrative operations, e.g. block indef with talk page disabled, together with mass delete all pages villain created with reason "Vandalism". Note that these are just default settings for quick access, you can still modify them after select a package.

You can define your package in your common.js as below. The following default package has been included in the code so you don't need to define it twice. Don't be scared of the length; they are just the settings you adjust everyday :)

A live example: User:WhitePhosphorus/global.js and search "all-in-one settings".

Add your reasons in drop down list
There are several default rationales for selection. You can override them in your common.js as below:

Disclaimer
You are fully responsible for your operations made via this script. Thus you are supposed to check all the settings before action and check if the result is desired, and correct it if needed. If you feel that the actions this script carried out do not correspond to your settings, feel free to contact the author.