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

Content deleted Content added
add invert selection
test bugfix
Line 21:
<input type='button' class='revdelSubmit' id='oversightSubmit' value='Oversight selected entries'></span></div>");
$("ul.mw-contributions-list .mw-revdelundel-link").each(function(ind,el){
if($(this).children("a").length > 0)
{
var revId = /ids=(\d+)/.exec($(this).children("a").attr("href"))[1];
var pageTitle = /target=([^&]+)/.exec($(this).children("a").attr("href"))[1];
el.innerHTML = "<input type='checkbox' name='"+decodeURIComponent(pageTitle)+"' class='revdelIds' value='"+revId+"'>";
$(el).children(".revdelIds").data("index", ind);
}
});
$("ul.mw-contributions-list").after("</form>");