User:Writ Keeper/Scripts/massRevdel.js: Difference between revisions

Content deleted Content added
fx
hm
Line 3:
if(mw.config.get("wgCanonicalSpecialPageName") == "Contributions")
{
$("ul.mw-contributions-list").before("Revision deletion: <form style='display:inline;'><input type='button' id='revdelSelectAll' value='Select all'><input type='button' id='revdelSelectNone' value='Select none'><input type='checkbox' id='revdelContent' name='revdelOptions' value='content'> delete content <input type='checkbox' id='revdelName' name='revdelOptions' value='userName'> delete user name <input type='checkbox' id='revdelComment' name='revdelOptions' value='editSummary'> delete edit summary <input type='checkbox' id='undelContent' name='revdelOptions' value='content'> undelete content <input type='checkbox' id='undelName' name='revdelOptions' value='userName'> undelete user name <input type='checkbox' id='undelComment' name='revdelOptions' value='editSummary'> undelete edit summary <br/><select id='wpRevDeleteReasonList'><option value='other'>Other reason</option></select><input name='wpReason' size='60' id='wpReason' maxlength='100'><input type='submitbutton' id='revdelSubmit' value='Revdel selected entries'>");
$("span.mw-revdelundel-link").each(function(ind,el){
var revId = /ids=(\d+)/.exec($(this).children("a").attr("href"))[1];