Gmail Tweaks: Multiple Signatures

By choonkeat Last update May 21, 2007 — Installed 16,566 times. Daily Installs: 10, 0, 9, 1, 6, 8, 1, 0, 0, 1, 4, 5, 0, 7, 1, 7, 0, 5, 10, 8, 0, 2, 0, 8, 1, 4, 5, 3, 13, 2, 7

Archived Comments (locked)

Subscribe to Archived Comments 56 posts, 32 voices

Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Jerome Dane Scriptwright

There's a new Firefox add-on that will handle multiple HTML Gmail signatures:

http://blankcanvasweb.com/pages/detail/id_9/n_g...

 
xtalla User

this wonderful script is not working anymore, after the last update of gmail, can anyone help fixing it? thanks a lot

 
wotaewer User

Is there any way to install this script in Opera?

Or any other method to achieve multiple signatures in Opera?

Thanks.

 
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?

 
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).

 
Dave Vigliotti User

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

 
Indros User

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

 
Indros User

That fixed it for me. Thanks!

 
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.

 
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.

 
caroline cli... Scriptwright

Hello,

anyway to get this to add the signatures automatically?

 
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.

 
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?

 
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.

 
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?

 
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 :)

 
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.

 
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!

 
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.

 
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.

 
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.

 
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!

 
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.

 
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.)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel