Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I'm trying to get a list of email addresses based off of a gmail search result.

My idea is this:

  1. Logon to gmail, perform search
  2. A Miracle Happens
  3. I have a list of the 'from' address for each email

I've tried using the javascript console / jquery etc. to try to get them but gmail's cryptic markup and classes is hard to traverse.

Any ideas / suggestions / miracles?

share|improve this question

1 Answer 1

Bah, 5 minutes later and I found it myself...

I ran this jquery snippet in my browser's console:

jQuery("iframe#canvas_frame").contents()
    .find("span[email]:visible")
    .not("[email^=PUT_YOUR_EMAIL_HERE]")
    .map(function(){
        return jQuery(this).attr("email");
    }).get().join(", ")
;

I should probably make a greasemonkey script or something, let me know if you have suggestions on how to best reuse it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.