Skip to content

Instantly share code, notes, and snippets.

@sholden
Created August 5, 2014 14:18
Show Gist options
  • Save sholden/34ece40faaaa9c2d67d9 to your computer and use it in GitHub Desktop.
Save sholden/34ece40faaaa9c2d67d9 to your computer and use it in GitHub Desktop.
Unsubscribe all from Meetup.com
$(".email_edit_icon").click();
setTimeout(function() {
$(".commSettings input[type='checkbox']").prop('checked', false);
$(".commSettings input[name='evRemind'][value='1']").prop('checked', true);
$(".commSettings input[name='mailing_list_status'][value='0']").prop('checked', true);
$(".commSettings form").each(function(i, f) {
$.ajax({
type: 'POST',
url: $(f).attr('action'),
data: $(f).serialize(),
dataType: 'application/x-www-form-urlencoded'
});
});
}, 3000);
Copy link

ghost commented Oct 19, 2014

This is the more correct solution than: https://gist.github.com/drwrchrds/c098cca52b42f4335451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment