FastFileDelete

The script adds "delete" buttons to Special:UnusedFiles, Special:UnusedVideos and Lightbox. By default, visible for sysops and content moderators only.
== ==
== ==
Click on X button (for Special:UnusedFiles and Special:UnusedVideos) or "Delete" one (for Lightbox).
== ==
Available via window.dev.fastFileDelete
; target
: link target (_blank, _self etc); default value is "_blank".
; groups
: additional list of groups, that allowed to see delete buttons; delimiter is "|". Do not use * group; do escape RegExp special characters (- -> \-).
== ==
// create ffd settings obj
(window.dev = window.dev || {}).fastFileDelete = window.dev.fastFileDelete || {};
// allow for "user" and "content-moderator" groups to see delete buttons
window.dev.fastFileDelete.groups = 'user|content\-moderator';
== Styling ==
The X buttons has ffd-buttonx class; the Delete button has ffd-buttondel class.
== Features ==
The script doesn't show the "Delete" button for lightbox, if initial image was changed (pagination, arrows etc). By design. One still can request de-featuring on the talkpage.