FANDOM


This script is for PERSONAL use only!

You are free to install this script for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:Common.js or MediaWiki:Wikia.js), as it would violate Fandom's Terms of Use.
(See the customization policy)

QuickDelete adds a button to a category pages that, when clicked, deletes all pages in that category.

Installation

Usage

A button will be added to the page header of all categories (unless modified, see below). On clicking it, a pop-up modal will appear, asking for the reason for deletion. On confirmation, it will delete all the pages and files in the said category and will notify the user about it. If the reason is not specified in the pop-up, the value of window.reason will be taken as the reason.

Configuration

You can alter the working of the script, by optionally adding the following lines before importing the script.

  • window.category will prevent the script from appearing on all categories except the ones in the variable.
    • Default: None
    • Example: window.category = ['Candidates for deletion', 'Unused images'];
  • window.reason will specify a reason for the deletion. This will be used only when a reason will not be provided in the pop-up.
    • Default: Marked for deletion
    • Example: window.reason = 'Housekeeping';
  • window.quickDeleteDelay will change the page deletion rate in ms.
    • Default: 500
    • Example: window.quickDeleteDelay = '800';

Known Bugs

  • None

If you happen to find one, use Talk:QuickDelete or notify me.

Updates

18 August, 2018
TheGoldenPatrik1: Consolidation of multiCats.js into code.js
18 August, 2018
TheGoldenPatrik1: Cleanup and Implementation of I18n-js
28 April, 2017
Added a deletion rate throttle
6 May, 2014
Fixed i18n issues
15 April, 2014
Added translations
12 April, 2014
Added monobook support
30 March, 2014
Added a function: when the category is not specified, the button will appear on all category pages, per request.
29 March, 2014
Added file deletion
16 February, 2014
Added multiCats.js per request.
15 February, 2014
Initial release
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+