Gmail Multiple Signatures, plus Float

By chefscotticus Last update May 31, 2007 — Installed 4,364 times. Daily Installs: 0, 3, 3, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 0, 2, 1, 2, 4, 0, 0, 0, 3, 3, 0, 1, 1

Archived Comments (locked)

Subscribe to Archived Comments 23 posts, 12 voices

Jesse Andrews Admin

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

 
enmi User

chefscotticus - Would you be interested in a freelance project regarding Greasemonkey scripts? If so, please let me know where I could email you off-forum. I can be reached at: esung@post.harvard.edu

 
JHS User

I don't know why GMail did this update - maybe to stop the float?(which is the most excellent update I have ever seen)

Put this shortcut on your Nav. bar and it saves a step.

https://mail.google.com/mail/?ui=1

 
sutton User

Yes, "use older version" in the upper-right-hand corner makes it work again. Thanks!

 
Jordan K User

The script is most likely broken due to the new version of Gmail being implemented. Check to see if there is a link to use "Older Version". If there is you can use the Older Version in the meantime until Google releases documentation for the scripters.

 
sutton User

Aaaaand... it's broken.

I tried switching "window.frames[1]" back to "window.frames[0]." No apparent dice.

Any ideas? Man, I spent so long getting it to work...

 
sutton User

Hi, does anyone know if it is possible to make some words in your signature a different color? I'm successfully running the script, but want to know what the syntax would look like (if it's even possible) to make one word or several words red while leaving the rest black. Also, am I correct that there is no way to use apostrophes in the text of one's signature, since the script reads these as code?

 
merrowman User

I'm having a problem with this script in that it works with plain text but not rich formatting... Has anyone figured out a fix to this?

 
Michael Devore Scriptwright

Well, maybe next month.

 
Michael Devore Scriptwright

I have some stuff on my plate now, but if nothing/nobody else moves on this feature in the next week, I'll take another look at it.

The script is probably slagged one or two other places I can't remember, but a few of the comments in the original lifehacker post are certainly worth an eye-roll, at http://lifehacker.com/software/email/download-o...

The best quote I see at a glance is this:

"Gotta agree on this one. This GM script just contributes to the degradation of what little netiquette we have left. GMail does the right thing by putting the sig at the bottom, and YES thos two dashes are indeed there for a reason - read above....."

So there you go, chefscotticus, you have "contributed to the degradation" of the Internet. I'd feel proud about that, were I you.

 
chefscotticus Script's Author

"Otherwise, you will probably annoy people who hate the chefscotticus script since it lends support to e-mail top-quoting. This includes people who have berated it on a public forum highlighting the new script, apparently oblivious to the fact that chefscotticus's idea for revision was sufficiently popular to receive ~1000 downloads in one month."

Hahaha. Where are said people? I want to read their vitriol!

 
chefscotticus Script's Author

Sure, Michael. I have no priorities other than for the script to be as useful as possible to those of us using it. Feel free to add/modify as you see fit.

 
Michael Devore Scriptwright

Helping a script user with a semi-painful tech support session tonight that should have only taken a few minutes reminded me of an idea for the chefscotticus script that I think should be considered.

I think the script should be modified such that users could select their e-mail addresses, colors, and signatures interactively via a dialog box, or at least via about:config settings, rather than by directly modifying the script's code. This change would make using the script less painful than requiring coding changes -- a difficult task for nonprogrammers to do correctly, especially if they have embedded single or double quotes or other miscellany in their script to add to the confusion. The change also would mean that users could install the script directly from this site and have it actually do useful things right out of the box.

However, I'm very reluctant to fork Yet Another Version of the script, particularly since the original script author publicly asked for comments about merging in code from this chefscotticus variant.

So I say, chefscotticus, what do you think about sponsoring another modification to your script as an update? Keeping the modification here maintains the same script fork count and, I think, should keep your script popular in the downloads (assuming you care about that).

 
Charlie Redell User

whoops, that didn't work. what I typed came out as garbage.... ah well. Anyway, what you added to the script made it more clear.
thanks,
c

 
Charlie Redell User

Phew. Thanks for that. I still had to fiddle around to figure out the exact right syntax(I have four signatures and addresses) but I got it working now.

For future releases, you may want to word the directions for how to edit the script to read like this:

Each signature corresponds to one email address.
The syntax for a signature is as follows:
'<text>\\n' +
'<text><text><text>

Anyway, thanks for the update and the clarification and the script. Works exactly as I want it to now.

c</text>

 
chefscotticus Script's Author

Per request below:

31 May 2007: Updated documentation with script to better reflect where the user must edit the script to use it.

 
Shadrach User

I like the combination of the two scripts. However, it seems that when replying, the "Float" part of the script, does not reloacate the use of the "Multiple" part of the script to the top.

I do have GTDInbox extension installed. In case that makes any difference.

Other than that, works great as advertised.

 
Charlie Redell User

Ok. I may not be the world's most techo-proficient person. But I can get myself into a computer or program and generally screw around until I figure out how to make it work the way I want to but I can not for the life of me get this script to do what it is supposed to.
I know I have to go into the script itself and edit it to get my email address to be choosable. When I type my emails into the email array, they show up on the compose page.
But what is the correct format for putting in the multiple signatures into the sig array? Anytime I have put them in there, the choice of emails on my gmail compose screen goes away.

What I am looking for is someone to point out the variables in sig array that need to be changed and what to add to get more than two different signatures.

Thanks!

 
chefscotticus Script's Author

Per Andrew's prescription below:

18 May 2007: Updated to reflect changes in Gmail's code. Replaced all instances (there are two) of "window.frames[0]" with "window.frames[1]".

 
Michael Devore Scriptwright

No-effort fixes are my favorite type of fix.

Well, no effort on my part.

 
Andrew Janssen User

For the fix, see my comment at http://userscripts.org/scripts/show/1592

 
Michael Devore Scriptwright

I hacked out the logic used in this version from the original script, so maybe I can hack out a fix for it. Busy this weekend, but if nobody else comes up with a fix in the next couple of days, I'll see whether some basic tweakage will re-fix things early next week. If we're lucky there isn't a major rewrite of logic involved.

Any nonobvious further information on the failure or examples would be great, assuming it's even necessary. I don't actually use the script myself, just do testing before release.

 
Tim Jervis User

Unfortunately this script appears to be broken today. There's a similar problem with its ancestor, as though a change in the gmail code has broken the hack.

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