Skip to content

Instantly share code, notes, and snippets.

@fafnirical
Created February 4, 2016 06:37
Show Gist options
  • Save fafnirical/81497b16f8cb1c7b2b9d to your computer and use it in GitHub Desktop.
Save fafnirical/81497b16f8cb1c7b2b9d to your computer and use it in GitHub Desktop.
Change photo for all meetup groups
  1. Go to your main profile: [http://www.meetup.com/profile/]
  2. Get the ID of the photo you want to use by:
  3. Click on "Photos"
  4. Navigate to the photo you want to use
  5. Right-click on the "Set as main profile photo" link and select "Copy" -- it should be something like [http://www.meetup.com/account/photo/?op=swap&id=photoID]
  6. The **photoID** (id=**photoID**) in the URL is your photo ID.
  7. Close the "Photos" dialog. You should be at [http://www.meetup.com/profile/].
  8. If you haven't already, click on the "See All My Meetup Groups" button.
  9. Open your browser's developer tools (usually F12), and run the following in the Console tab, replacing **photoID** with the photo ID you want to change to:
$('.groupinfo-widget h4 a.omnCamp.omngj_pswg4').each(function() {
  $.get(this.href + 'members/photos/manage/?op=swap&id=**photoID**');
});
@danwerner
Copy link

This approach does not work anymore, unfortunately. By removing the h4 and .omngj_pswg4 selectors, the query will match the correct links again. However, all the GET requests will then fail as they are lacking the csrf_token parameter.

Ironic, as this is exactly what CSRF tokens are made for X-D

@BinaryMuse
Copy link

I've always wanted a way to do this and this script inspired me to write a new version that works with modern meetup (as of March 2020). https://gist.github.com/BinaryMuse/1ca54a71c780651b83bea457304cd423

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