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();



------------------------------------------------------
Mailman-Users mailing list Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to