Help:Gadget-autodel.js
This is the documentation for autodel, a JavaScript gadget which can be enabled or disabled in your Preferences. The script itself is located at MediaWiki:Gadget-autodel.js. |
If you need more help, please ask at the discussion page or at Commons:Help desk. Documentation: English |
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]
- 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.
- When confirming this dialogue, delete-links are added to the whole page-content.
- 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]
- After clicking the green litter box, a confirmation-dialogue will be opened. This dialogue can be skipped.
- 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 };