Skip to content

Instantly share code, notes, and snippets.

@adrienbrault
Created January 17, 2013 18:50
Show Gist options
  • Save adrienbrault/4558512 to your computer and use it in GitHub Desktop.
Save adrienbrault/4558512 to your computer and use it in GitHub Desktop.
// 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