User:Vantey/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
//<nowiki>

//catALot///////////////////////////////////////
////////// Cat-A-Lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":true,"subcatcount":200};
////////////////////////////////////catALotEnd//
//</nowiki>

window.AjaxDeleteExtraButtons = [
 { 'label': 'DW No Source',
 'tag': '{'+'{subst:dw-nsd}}',
 'img_summary': 'This is a [[COM:DW|derivative work]] and no source is provided.',
 'talk_tag': '{'+'{subst:dw image source|1=%FILE%}}',
 'talk_summary': 'Original source is missing for %FILE%',
 },
 { 'label': 'Tag as dupe',
 'tag': '{'+'{duplicate|1=%PARAMETER%|user=%USER%}}',
 'img_summary': 'Tagging as duplicate of [[%PARAMETER%]]',
 'prompt_text': 'Which is file is this a duplicate of?'
 }
 ];

 mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');