[Mailman-Users] Mass Removal
Terri Oda
terri at zone12.com
Mon Dec 14 23:47:26 CET 2009
Adam McGreggor wrote:
> On Mon, Dec 14, 2009 at 09:48:15PM +1000, certuspersonality wrote:
>> Is it possible to mark all members in the 'unsub' column in one go?
>
> greasemonkey? A few GM scripts for Mailman have been written: I can't
> remember what for, though. Search the list archives for greasemonkey,
> perhaps?
Here's one that should work, although it's not too well tested:
// Begin script
var inputs = document.getElementsByTagName("input");
for (var i=0; i < inputs.length; i++){
if(inputs[i].type == 'checkbox' &&
inputs[i].name.indexOf("_unsub") > 0){
inputs[i].checked = true;
}
}
// End script
Or if you don't have greasemonkey, here's the same thing as a
bookmarklet (In Firefox, make a bookmark and set this as the "location")
javascript:function%20unsubAll(){var%20inputs=document.getElementsByTagName("input");for(var%20i=0;i<inputs.length;i++){if(inputs[i].type=='checkbox'&&inputs[i].name.indexOf("_unsub")>0){inputs[i].checked=true;}}}unsubAll();
More information about the Mailman-Users
mailing list