Skip to content

Instantly share code, notes, and snippets.

@timucingelici
Last active November 5, 2019 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timucingelici/92a82099e7917210794b2cb88eddc216 to your computer and use it in GitHub Desktop.
Save timucingelici/92a82099e7917210794b2cb88eddc216 to your computer and use it in GitHub Desktop.
Meetup.com attendee list position finder
// 1 - Find your profile ID
// 2 - Replace it with PLACE_YOUR_PROFILE_ID_HERE in the code
// 3 - Open the the attendee list you'd like to check (Going, Not Going or Waitlist)
// 4 - Paste it to your developer console and press enter
// 5 - Voila???
//
// FAQ
// Q: Why?
// A: Why not?
((profileID) => {
let list = document.getElementsByClassName("attendees-list")[0].children;
let position = null;
for (let index=0; index < list.length; index++) {
if(list[index].getElementsByTagName("a")[0].toString().includes("/" + profileID + "/")){
position = list.length - index;
console.log("Your position in the list is: " + position);
break;
}
}
if (!position){
console.log("Can't find you in this list! Are you sure you're looking to the right one?");
}
})("PLACE_YOUR_PROFILE_ID_HERE")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment