Results 1 to 3 of 3

This is a discussion on GMail + Chrome Extension -- Can this be done? within the Plugins Development section, part of the Chrome Plugins category: Hello ChromePlugins forum. My first time here, but hopefully not my last . I'm considering making my first chromeplugin, but ...


  1. #1
    0sinner is offline Junior Member
    Join Date
    Jul 2010
    Posts
    3

    Default GMail + Chrome Extension -- Can this be done?

    Hello ChromePlugins forum. My first time here, but hopefully not my last .

    I'm considering making my first chromeplugin, but I'm a little confused by the restrictions that the google chrome documentation gives to extensions. Essentially I'm looking to allow users of my extension to use an additional feature to GMail. In order for the feature to work I'd need to trigger a function to run when the 'send' button is pressed in a gmail email (reply or compose mail). The function would then need to have access to a few data sources:
    1) The 'To' field of the message/reply being composed
    2) The google search feature
    3) All the emails that the logged in user can use to send mail from

    I have heard about an experimental Gmail API intended for greasemonkey scripts, which I believe can be of use, but I'm not sure just how much control this will give me.

    I mainly want to develop this for myself but I'll probably put it up and make it available for anyone else that wants it.

    The idea is for anyone who uses a single google account to manage lots of email accounts (by forwarding emails to a single account). When I click 'reply' to an email sent to another account, Gmail automatically selects to send the email from the account the original email was sent to. This is good, however, if I decide to write my own email to a specific person (or people) I often lack the presence of mind to change which email I want to send it from. Often this leads to confusion as to which email is actually me and impersonation/trust issues. My plugin would take all emails in the To field, and search Gmail for conversations involving them (where they are either in the from or To fields), tally up the number of times they have communicated with each of my accounts, and then if I'm sending an email from anything other then the most likely account that they prefer, it will pop up a message that will allow me to change my 'From' field.


    So the question here is: Can this be done? And where should I begin the implementation (like what kind of special permissions, set up, manifest, etc. will I need)?
    Last edited by 0sinner; 07-02-2010 at 06:29 AM. Reason: Clarified the question and also added in the bit about the Gmail Greasemonkey API

  2. #2
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    You can do anything you can in JavaScript. So really I'd say the answer is "likely".
    The only complicated part of that that I can foresee is searching all the old email, you would likely need to hack around gmail a bit to see what you would need to AJAX request to get those emails' to/from/cc fields.
    Other than that it sounds like pretty basic DOM manipulation. Also, I've never heard of a gmail greasemonkey API, but I wouldn't worry about it too much. Chrome doesn't have greasemonkey specifically anyway, so unless what you heard about was specifically for Chrome, don't bother with it.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  3. #3
    0sinner is offline Junior Member
    Join Date
    Jul 2010
    Posts
    3

    Default

    Thanks for the response Waha. I'll see if I can get it working on my own.

Similar Threads

  1. gmail checker in Chrome/Google applications
    By vossloh in forum Plugins Troubleshooting
    Replies: 6
    Last Post: 12-30-2009, 04:17 AM
  2. Chrome Gmail Notifier Extension
    By hewligun in forum Plugins Troubleshooting
    Replies: 7
    Last Post: 11-30-2009, 07:21 PM
  3. Chrome or gmail bug.. can't log in
    By Benni in forum Bugs and Vulnerabilities
    Replies: 4
    Last Post: 11-02-2009, 03:59 PM
  4. Where to download new gmail extension
    By Benni in forum Plugins Troubleshooting
    Replies: 5
    Last Post: 10-07-2009, 08:43 AM
  5. Chrome Gmail Notifier..Where to download???
    By daxia in forum Plugins Troubleshooting
    Replies: 1
    Last Post: 08-19-2009, 12:53 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •