User:Anomie/revdel-checkboxes
This script adds checkboxes and a "Del/undel selected" button to the File history table at the bottom of File-namespace pages and to log entries on Special:Log and in excepts at the top of some pages, to allow for easily using WP:REVDEL on more than one old revision or log entry at once. This can be useful, for example, when doing the CSD F5 deletion of Category:Non-free files with orphaned versions under RD5 to preserve the upload history.
Usage
[edit]To use the script, add the following to your skin-specific Javascript file.
importScript('User:Anomie/revdel-checkboxes.js'); // Linkback: [[User:Anomie/revdel-checkboxes.js]]
Note that this script has only been extensively tested on Monobook with Firefox.
Then, when viewing a file with multiple revisions, you should see checkboxes in the table on all but the first row and a button beneath the table. And when viewing Special:Log, editing deleted or protected pages, and so on, you should see checkboxes on each line and a button at the upper-right above and below the list. If you check some boxes and then click the button, the revision deletion form will be displayed for those revisions/log entries. As a shortcut, if all checkboxes are unchecked then all revisions will be passed to the revision deletion form.
Caveats
[edit]When using the script on Special:Log, if entries from multiple types of logs are selected then the RevDel log summary will refer to "All public logs". If all entries are from the same 'type' (e.g. all are page move logs), this problem does not occur.