Skip to content

Instantly share code, notes, and snippets.

@parallelepiped
Last active December 25, 2015 21:58
Show Gist options
  • Save parallelepiped/7045923 to your computer and use it in GitHub Desktop.
Save parallelepiped/7045923 to your computer and use it in GitHub Desktop.
How to unsubscribe from all meetup emails
_.each($(".editInPlace"), function(g){g.click()})
// wait a second for ajax to finish
_.each($("input[type=checkbox]:checked"), function(c) {c.click()})
_.each($("input[type=radio][value=1]"), function(e) {e.click()})
_.each($("input[type=radio][name=mailing_list_status][value=0]"), function(e) {e.click()})
_.each($("input[type=radio][name=evRemind][value=1]"), function(e) {e.click()})
_.each($("form[method=POST]"), function(f) {$.post(f.action, $(f).serialize(), function(e) {console.log("Unsubscribed from " + f.action)})})
@ddgromit
Copy link

omg this is amazing, thanks

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