Skip to content

Instantly share code, notes, and snippets.

Avatar
👶
Parenting

Jaime Vintharas

👶
Parenting
View GitHub Profile
@Vintharas
Vintharas / random-attendee.js
Last active Apr 5, 2017 — forked from mzabriskie/random-attendee.js
Select random Meetup attendee
View random-attendee.js
// 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);