Created
August 5, 2014 14:18
-
-
Save sholden/34ece40faaaa9c2d67d9 to your computer and use it in GitHub Desktop.
Unsubscribe all from Meetup.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the more correct solution than: https://gist.github.com/drwrchrds/c098cca52b42f4335451