Skip to content

Instantly share code, notes, and snippets.

@amadden80
Created February 6, 2015 22:27
Show Gist options
  • Select an option

  • Save amadden80/34025b24cbeba71e4ac5 to your computer and use it in GitHub Desktop.

Select an option

Save amadden80/34025b24cbeba71e4ac5 to your computer and use it in GitHub Desktop.
Convert all Meetup attendants into linkedin search...
var handle = setInterval(function(){
$($('.nav-appendPager')[0]).trigger('click');
}, 250);
var names = [];
setTimeout(function(){
clearInterval(handle);
var members = $('.member-name')
$(members).each(function(idx, ele){ names.push($.trim($(ele).text())); })
var linkedin = "https://www.linkedin.com/vsearch/f?type=people&keywords=Chicago%20";
var list = $('<ul>');
$(names).each(function(idx, name){
var li = $('<li>').html($('<a target="_blank" href="'+ linkedin + name.replace(" ", "%20") + '">'+ name +'</li>'));
list.append(li);
})
$('body').prepend(list);
}, 3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment