Created
January 17, 2013 18:50
-
-
Save adrienbrault/4558512 to your computer and use it in GitHub Desktop.
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
// Go to http://www.campus-booster.net/Booster/students/classMembers.aspx | |
// Open your browser javascript console | |
// And execute this | |
var html = $('body').innerHTML | |
var regex = /http:\/\/www\.campus-booster\.net\/actorpictures\/([0-9]+)\.jpg/g | |
var ids = [] | |
while (null != (match = regex.exec(html))) { | |
ids.push(match[1]) | |
} | |
var emails = ids.map(function (id) { | |
return id+'@supinfo.com' | |
}) | |
var emailsList = emails.join(', ') | |
console.log(emailsList) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment