Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Gmail Tweaks: Multiple Signatures

Applies different signatures (look for 'Use identity:') for writing gmail messages when different From: address is chosen. Right now, data has to be configured directly into this script. Click EDIT to configure your email and signatures: email_array, sig_array, col_array

A multiple signature selector. Combines choosing "From: address" and signature into 1 action.

To add signature, from address, color theme you'll need to edit the script itself. Sorry!




Apr 25, 2008
wotaewer User

Is there any way to install this script in Opera?

Or any other method to achieve multiple signatures in Opera?

Thanks.


 
Feb 11, 2008
Keith Swaback User

The script doesn't seem to work for me, nothing changes when I switch the from address. Does anyone know of recent gmail updates that may have effectively disabled the script?


 
Jan 23, 2008
Oldak Quill User

The script seems to work for me (even though it hasn't been updated since May and others, since then, have commented it is broken).

One problem: if I set gmail to automatically add a signature (i.e. the signature for my gmail account), and use the script to change identity, it just adds the new signature below my autosignature (rather than replacing it).


 
Nov 13, 2007
Dave Vigliotti User

I'm still broken since the early November Google change. Has anyone had any luck figuring a fix?


 
Nov 3, 2007
Indros User

As one might imagine, the new Gmail code update breaks this wonderful script. I wish I new how to code!


 
Oct 5, 2007
Indros User

That fixed it for me. Thanks!


 
Oct 4, 2007
gRegor User

Yes, a recent change in Gmail frameset broke it again. It appears that changing "window.frames[1]" back to "window.frames[0]" makes it work again.


 
Oct 3, 2007
Indros User

Looks like Gmail may have broken the script again. The account link still changes the From: address but no longer inserts the signature.

Using Firefox 2.0.0.7 and Greasemonkey 0.7.20070607.0 in Mac OS X.


 
Sep 20, 2007
caroline cli... User

Hello,

anyway to get this to add the signatures automatically?


 
Aug 13, 2007
canghuixu User

Hi Matthew,

Matthew, I just checked and it is the opposite for me. Nothing happens on a reply when I am in plain text. I can click addresses to change the From:, but that doesn't add any signature. However I just tried switching to rich formatting, and there at least it works. Signatures are not automatically added to the reply, but at least when I click to choose my identity, that adds a signature. Go figure.


 
Jul 25, 2007
Matt's Awesome User

camecamp, does it work when you switch to Plain Text? That's my situation... plain text good, rich text broken.

Is this script working for anyone in Rich Formatting?


 
Jul 25, 2007
Matt's Awesome User

Signature at the top of replies:

Search for form.msgbody.value in the script. Replace that line and the line below it with this code:

" form.msgbody.value = sig[array_int] + \n" +
" '\\n' + form.msgbody.value;\n" +

We're just swapping the order of the quoted message and sig.


 
Jul 20, 2007
canghuixu User

Hi,

I just installed and works great for compose. However, for reply, it only seems to work partially. First of all, clicking on the user identity doesn't do anything unless I have clicked up above to bring up the from: address menu. And when I select identities after doing this, it changes the from: fine, but doesn't add the signature. Am I missing something in terms of a tweak to make sure it works completely for replies?


 
Jul 11, 2007
Sarah Wood User

Hello all. I am very new to this, and I am trying to create multiple signatures for a non-profit I am working for. Could someone tell me, or direct me how to create multiple signatures in gmail? It would be greatly appreciated, your good deed for the day :)


 
Jul 10, 2007
Dave Vigliotti User

I checked my install today and mine is working with replies no problem. I tried reply to and reply to all. No changes here.

Although I notice the script doesnt work so well with Google Apps or "Mailto compose in Gmail" script window. I guess that pesky id= doesnt show up in either window.


 
Jul 8, 2007
Paul Swartz User

This script doesn't work on replies as of today. I imagine that GMail changed something that broke the script. Thanks for the script!


 
Jun 27, 2007
Michael Devore Scriptwright

script doesn't work when replying to emails, is that correct?

Nope, just tested here (I don't normally use the script) and it works okay in replying. The multiple identity to select is at the very bottom of the page, however. Location seems to move around a bit, depending on what is being done.


 
Jun 23, 2007
Jeff L User

Thanks very much for the double quote hints. It worked very well. I suspect this could be what was causing d'Amphoux's problems.

I also noticed that this script doesn't work when replying to emails, is that correct? I don't see the "Use Identity" line at all when replying, even when in plain text mode.


 
Jun 23, 2007
Michael Devore Scriptwright

For 2) you need to double-escape a double-quote " with two leading backslash \ characters. You can probably use a single quote ' by tripling escaping it, although that one I haven't tried.

The signature will successfully take at least a few HTML codes. One that I've seen work here contained EM, FONT (including face, size, and color), STRONG, A, and, of course, PRE. Other codes probably work, although there may be conflicts or restrictions with Gmail's existing styles.


 
Jun 23, 2007
Jeff L User

I am somewhat new to the greasemonkey scrips, but managed to get this one working last night. 2 comments/questions:

1) As was mentioned before, the signature entry function only works when I am in plain text mode.

2) Putting quotation marks into the signature text breaks the entire macro. Is there a way to insert those that won't cause problems? What kind of html is allowed in the signature array?

Thanks for the great script!


 
Jun 21, 2007
Michael Devore Scriptwright

No, no, no, chefscotticus, as an accused 'Contributor To The Degradation Of Netiquette' for sponsoring the original script modification and thereby contributing to the Great Evil Top-Posting, you are to appear contrite and forlorn, not happy and enthusiastic.

Anyway, that lifehacker thread beating up your script mod is worth one Mild Amusement power-up. Too bad they stopped before splattering slaver and achieving Moderate to Major Amusement status.


 
Jun 19, 2007
chefscotticus Scriptwright

I, for one, would love to see the floated signature functionality incorporate into the original Gmail Multiple Signatures script. I'm not nearly good enough to keep the chefscotticus script up to date with Gmail (Michael Devore's been great about that), and would have no problem seeing my script go poof.

(Who knew that such a simple idea could generate such vitriol? I can't wait to google it and find out.)


 
Jun 18, 2007
d'Amphoux User

Ok, I've read all the posts, edited the script to have my two email addresses, and I see the "User Identity:" with my two email addresses. I click on them and they change the From field, but my signature remains the default gmail sig. Am I missing something simple?

Couple thoughts:

1. I am using google apps for biz as the front end to my gmail. So my mail url is https://mail.google.com/a/domainname.com/ instead of mail.google.com. I explicitly called out this path in the setup screen just in case, but I'm curious if it would have an impact.

2. I've tried enabling and disabling the default sig. No change.

3. I'm also using the Super Clean script which had the signature float macro in it, but I disabled it.

Lost....

Mike


 
Jun 17, 2007
MayMay User

It's working now. Very mysterious. I didn't do a thing. Creeps me out when machines do that to me....


 
Jun 15, 2007
Indros User

I'm running Greasemonkey 0.7.20070607.0 on Firefox 2.0.0.4 and it's working fine (and did before/after my last Greasemonkey auto-update). Maybe you need to reinstall the script?


You could comment on this script if you were logged in.