Wikia

Wikia Developers Wiki

WatchlistRandom pageRecent changes

FastDelete

Talk23
196pages on
this wiki
FastDelete
TypeJavaScript
DescriptionScript for deleting pages with one-click
ScopeFor personal use
Author(s)Splarka
Uberfuzzy
Grunny
Updated13 March 2012
Code/code.js
SkinsMonaco
Monobook
Oasis
LanguagesEnglish

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 useEdit

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 languagesEdit

This script has been translated into Spanish and can be implemented by replacing the import used above with:

importScriptPage( 'FastDelete/code.es.js', 'dev' );
Advertisement | Your ad here

Latest Photos

Add a Photo
58photos on this wiki
See more >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki