DeleteUserpage adds a button to delete a user's userpage on their contributions page.
Installation
Configuration
To configure the script, you can set the following keys in the window.DeleteUserpage
object:
Name | Type | What it does |
---|---|---|
noConfirm
| boolean | Controls if you get a confirmation for deleting/protecting the userpage |
deleteReason
| string | Custom delete reason |
protectReason
| string | Custom protection reason |
reason
| string | Custom reason, used for both protecting and deleting, if a custom reason isn't set for that individual action |
protect
| boolean | Switch to enable protection of the userpage after deletion, needs to be set to true to get the option to protect the page |
expiry
| string | Custom protection length |
Here is an example configuration of the script using the variables above:
window.DeleteUserpage = { noConfirm: true, protect: true, deleteReason: 'spam', protectReason: 'spam', expiry: '1 week' }
Text above can be found here (edit)
Community content is available under CC-BY-SA
unless otherwise noted.