MediaWiki:Gadget-SpeedyDelete.js

// // BEGIN MW GADGET // Quick delete buttons

function articleReasons {

importScriptPage('FastDelete/code.js', 'dev'); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'spam'}; fdButtons[fdButtons.length] = { 'summary': 'Unnecessary', 'label': 'unnec'}; fdButtons[fdButtons.length] = { 'summary': 'COD:LEAK', 'label': 'LEAK'}; fdButtons[fdButtons.length] = { 'summary': 'Successful AFD', 'label': 'AFD'};

}

function fileReasons {

importScriptPage('FastDelete/code.js', 'dev'); var fdButtons = []; fdButtons[fdButtons.length] = { 'summary': 'Unnecessary', 'label': 'unnec'}; fdButtons[fdButtons.length] = { 'summary': 'Spam', 'label': 'spam'}; fdButtons[fdButtons.length] = { 'summary': 'Unlicensed', 'label': 'lic'}; fdButtons[fdButtons.length] = { 'summary': 'Duplicate file', 'label': 'dupe'}; fdButtons[fdButtons.length] = { 'summary': 'Unused file', 'label': 'unu'}; fdButtons[fdButtons.length] = { 'summary': 'COD:LEAK' 'label': 'LEAK'}; }

if (wgNamespaceNumber == 0 ) { addOnloadHook(articleReasons); } else if (wgCanonicalNamepace == "File" ) { addOnloadHook(fileReasons); }

// END MW GADGET //