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?

link|improve this question
feedback

1 Answer

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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