Created
February 6, 2015 22:27
-
-
Save amadden80/34025b24cbeba71e4ac5 to your computer and use it in GitHub Desktop.
Convert all Meetup attendants into linkedin search...
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
| 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