Last active
November 5, 2019 10:19
-
-
Save timucingelici/92a82099e7917210794b2cb88eddc216 to your computer and use it in GitHub Desktop.
Meetup.com attendee list position finder
This file contains hidden or 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
// 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