-
-
Save vintharas/e8197a4baebb33bcefe26e1694a8010a to your computer and use it in GitHub Desktop.
Select random Meetup attendee
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
// Create bookmark with javascript: CODE_HERE | |
// Click on bookmark in meetup website | |
(function () { | |
var list = document.getElementById('rsvp-list').children, | |
item = list[Math.floor(Math.random() * list.length)], | |
name = item ? item.querySelector('h5.member-name a').innerHTML : 'N/A'; | |
item && item.parentNode.removeChild(item); | |
alert("And the winner!!! Is.... " + name); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment