Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Mailto Compose In GMail (with choice)
Add GMail compose links near every "mailto" links in web page
Original script is http://www.userscripts.org/scripts/show/595
instead replace the "mailto" link with redirection to gmail compose page, this script put near every "mailto" link a little gmail icon. If you click on gmail icon you'll be redirect to gmail compose page, if you click on "mailto" link it works normal, with your predefinited email client.
This script would be usefull at work, to have choice for email sender
|
|
Would be nice if it did it next to text email addresses too... |
|
|
Great script. I did notice an issue. If the subject, body, etc. have special characters in them, things get messed up. A solution seems to be putting the nameValue[2]'s inside escape(). For example: line 83: emailSubject = escape(nameValue[2]); I actually did this for To (76), CC (79), Subject (83), and Body (87)to be on the safe side. I'm guessing the To and CC can't have too many special characters because of the requirements for a valid email address, but it doesn't seem to hurt. |
|
|
Awesome script, thanks! :) |
|
|
I'm trying to edit this script so that I already have a body included. The problem that I am having is that is does not support multiline when assigning the string to the emailBody variable. emailBody = "hello";
Correct Output: hello
Any suggestions to correct this would be great. |
|
|
This script is awesome. And I like the modifications that Hemal Pandya and Blake West made to the base script. The option of having the gmail composer popup is quite convenient. If there were a way to have the "process the page on demand" functionality Hemal wrote could be a toggle (right now it only sets to on). Maybe I'll learn javascript and try hacking it myself. Heh, right. Like that's gonna happen. |
|
|
I made a couple small edits to my copy of the script that move the gmail icon to the right of the mailto: link and also open the compose window as a popup that will auto-close after you click send. I modified these two lines in the script...
...to look like this...
Thanks for the script, cigno5.5! Just what I needed at work. |
|
|
in firefox 2.0, once i finish composing an email, the tab won't close automatically as it did before. how can I solve this? |
|
|
It doesn't work with Geasemonkey on Epiphany Web Browser, unfortunately. I think you don't bother a lot about these weird browsers, but I bet it's noteworthy anyway :p |
|
|
Doesn't work in my greasemonkey 0.6.5.20060727 and firefox 1.5.0.6. |
|
|
If you go to http://software.hixie.ch/utilities/cgi/data/data you can upload an image of your choice and encode it for the script. Select 'base64' at the top. Browse to your image and then select 'generate'. Copy the result [very long line]. Open the script in a text editor. Scroll down to 'gmailIcon.src = ' and replace what follows with your new code. Make sure the new image code is between "" and is followed by ; hope this works |
|
|
It also appears to not recognized MAILTO tags that where the HTML is written in all uppercase. That also sounds like something I could tweak on my own if someone could give me a hint with the javascript. |
|
|
I really like the choice aspect of this script, but the Gmail icon can get a little annoying if the page has multiple mailto links. I'd like to modify the script to display something in text, maybe just a G or even just a * before the link. Can anyone suggest the script edits that would be needed to do this? |
|
|
Changing the last line from 'processMailtoLinks();' to 'GM_registerMenuCommand("mailto=gmail", processMailtoLinks)' does exactly that. My first modification of a userscript. Yay! |
|
|
i appreciated all of yours suggestions...it's not a tecnical problem implements the suggested features...it's a time problem!! :(
|
|
|
This script is accellent, but I would like it to process the page on demand, not always. Maybe there can be a button somewhere on the page or better still a menu option that triggers the insertion of gmail links. This will achieve two things:
But I will use the script even if you don't make these changes :-) |
|
|
The default exclude of http://gmail.google.com didn't work for me. Changing it to http://mail.google.com/* and https://mail.google.com/* did the trick. |
|
|
I've modified the script so that browsers won't add a line break between the icon and the mailto link text. Would anyone like to see the diff? |
|
|
I already posted this at the Ideas page, but have received no responses. Is it possible for a GM script to automatically search and convert webpage text strings such as "sendmenospamplease AT hotmail DOT com", "sendmenospamplease at yahoo dot co dot uk", or "sendmenospamplease at ibm net" into clickable mailto links? Ideally, this script would search for patterns with phrases such as "at" and "com" or "net" in close proximity. Nearby marking words and phrases that alert GM to a hidden e-mail address can include "send me", "private me", "PM", "message me". Or the pattern could be "at" then followed by any of the major email or webmail providers (gmail, aol, earthlink, etc...) It would be a PLUS also to have a Gmail/Yahoo mailto icon added after the "re-assembled" e-mail address. All this would make it a convenient one-click access to write to e-mail addresses which were written to avoid spambot harvests. What you do think? |
|
|
cigno5.5, Can you also make it Opera compatible. I tried the script in opera and it gave me type mismatch error. Works fine in Firefox1.5. name: TypeError
|
|
|
Thanks for a good script. Finally I found it was trying to write my own but gmail api is hard to understand. For my personal use I would want to add additional functionality to your script. 1. Want to add a hardcoded file attachment variable. With hardcoded file path, so that I don't have to browse and locate file to attach in Compose window. 2. Want an IFrame at bottom of Compose box displaying mail search results of recent mail sent/received to/from the mailto(To:) email address. 3. Asking too much now. Clicking the mailto icon should paste my custom text message in body of email compose window. Or add a dropdown listbox on top to selectively paste text from one of my custom templates. -slamdunk |
|
|
good one! the only problem is it's gonna make me stop using Thunderbird and my ISP e-mail! ;-p |
|
|
Thanks ! |
|
|
This needs the secure gmail url (https) added as a default to the exclude list. |
|
|
ycc2106, you must simply go to http://www.userscripts.org/scripts/show/595
|
|
|
and to have a it link to Gmail, so I don't open an external app. |
You could comment on this script if you were logged in.
