AjaxDelete

AjaxDelete allows you to delete and undelete pages without leaving the page you're on, by showing a deletion modal when you click on any delete or undelete link.

Note: The modal won't open if you're holding either the shift or control key. This is to allow users to access the delete and undelete pages normally.

Installation
Add this line of code on your  call on either your global.js, common.js, or wikia.js:

Usage
The block modal will show up when you click on any ?action=delete link, using it is pretty self-explanatory. Select one of the generic delete/undelete reasons or type your own on the input. You can specify the reason further if you choose a common reason and input your own at the same time, which would appear as:. Check the "Watch this page" box if you wish to follow the article and then click "Delete" to delete it, or "Cancel" to close the modal.

When undeleting, a modal will pop up prompting you to input a reason. Clicking "Restore" will undelete the page, and "Cancel" will close the modal.

Customization
All custom variables are under the  object.

To set custom delete reasons, you just need to add to the  object in the syntax:. And to set custom reasons for images, add to the  object in the same syntax.

To automatically check the "Watch this page" box, set the  boolean to true.

Example configuration: All default values from the dropdowns are taken from their respective MediaWiki pages (MediaWiki:Deletereason-dropdown and MediaWiki:Filedelete-reason-dropdown).