FastDelete adds buttons to any page that can be deleted which deletes the page with a single click.
Installation
Configuration
The script also requires you to configure the buttons you'd like to use. Some example of buttons you might like to use can be seen below, where label is the text that appears on the button, and summary is the reason for deletion.
window.fdButtons = [
{
summary: 'Housekeeping',
label: 'HK'
},
{
summary: 'Vandalism',
label: 'V'
},
{
summary: 'Spam',
label: 'S'
}
];
It is recommended to use short button labels or they will rapidly take up lots of space.
The buttons need to be defined before the script import. All together it will look something like this:
window.fdButtons = [
{
summary: 'Housekeeping',
label: 'HK'
},
{
summary: 'Vandalism',
label: 'V'
},
{
summary: 'Spam',
label: 'S'
}
];
importArticles({
type: 'script',
articles: [
// ...
'u:dev:MediaWiki:FastDelete/code.js',
// ...
]
});
You can set window.FastDeleteNoConfirm
to true to disable the "are you sure?" prompt.
Wikitext in summaries
You can use some limited wikitext in the summary:
[[Link]]
[[Link|text]]
[[w:c:interwiki:Link|text]]
Other wikitext will not work:
[https://dev.fandom.com/wiki/Link]
[https://dev.fandom.com/wiki/Link text]
{{template}}
Text above can be found here (edit)