FastDelete
Talk23
196pages on
this wiki
this wiki
FastDelete | |
|---|---|
| Type | JavaScript |
| Description | Script for deleting pages with one-click |
| Scope | For personal use |
| Author(s) | Splarka Uberfuzzy Grunny |
| Updated | 13 March 2012 |
| Code | /code.js |
| Skins | Monaco Monobook Oasis |
| Languages | English |
FastDelete 2.0:
- Rewritten to use AJAX by Grunny
- Honorary mention to the original, by the late great w:User:Splarka.
- Uses original button array, so only the call to source needs to change (maybe)
How to use
Edit
Either in your js on your local wiki, or more commonly in your global js,
- setup the code like this
importScriptPage( 'FastDelete/code.js', 'dev' );
That will include the code /code.js here on this wiki.
note: for those old schoolers out there, this replaces the appendScript function, and include to User:Splarka/fastdelete.js
- Then add this
var fdButtons = [];
This will create the array that your buttons will be held in, and signal to the code that you have buttons.
- Lastly, the custom buttons you want to use
fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'spam' };
- add more then one of these to add more buttons, example
fdButtons[fdButtons.length] = { 'summary': 'spam', 'label': 'spam' }; fdButtons[fdButtons.length] = { 'summary': 'vandalism', 'label': 'vandal' };
- Wiki text is allowed in the edit summary
- And remember, that your bar will fill up fairly quickly with long button texts, so take a hint, use short ones
fdButtons[fdButtons.length] = { 'summary': '[[helpwiki:Spam|spam]]', 'label': 's' };
Other languages
Edit
This script has been translated into Spanish and can be implemented by replacing the import used above with:
importScriptPage( 'FastDelete/code.es.js', 'dev' );