Help:Gadget-autodel.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
The Add DeleteLinks-tab
A dialogue prompting for confirmation

Autodel is a gadget that allows adding delete-links to each link pointing to a deletable target. It also provides quick deletion through {{Instant-nuke}} at User:CommonsDelinker/commands (what could be easily extended).

How it works[edit]

Delete links[edit]

  1. After clicking the Add DeleteLinks-tab, a dialogue will prompt for the default reason. The dialogue's text-input should be pre-filled with the reason you used last.
  2. When confirming this dialogue, delete-links are added to the whole page-content.
  3. Clicking a delete-link will open a new dialogue prompting for confirmation of the deletion. This dialogue can be skipped (see #customization) invoking immediate deletion but doing so, you have to be very careful not to delete wrong pages that are e.g. [[Main page|pipelinked]]

Template:Instant-nuke[edit]

Autodel working on User:CommonsDelinker/commands
  1. After clicking the green litter box, a confirmation-dialogue will be opened. This dialogue can be skipped.
  2. When confirming deletion, progress will be shown in-line.

Customization[edit]

Skipping confirmation[edit]

Disclaimer: You are responsible for your deletions. People could do every sort of malicious attack to make you deleting the wrong page. Carefully look at the tool tips before deleting.

To skip the deletion-confirmation, add the following line to your common.js:

window.skipAutodelConfirm = true;

In case you did this, you should not enable Instant-nuke on pages that could be compromised.

Activating Instant-nuke on other pages than User:CommonsDelinker/commands[edit]

You can activate the instant-nuke-feature on pages other than User:CommonsDelinker/commands using the following JavaScript code in your common.js:

window.autodelPages = { 'Pagename': true, 'User:CommonsDelinker/other_page': true };

spaces must be replaced with underscores (_)

To disable this feature on a page where it is activated by default, you can use

window.autodelPages = { 'User:CommonsDelinker/commands': false };