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

Gmail: Random Signature

Insert a random tagline at the end of your email sent through gmail.

This is a signature generator that will show random taglines in the end of your signature in GMail.

It will insert an option in your GMail settings so you can edit your taglines. You can choose if you want to show just your static signature, just the tagline, none or both.

Enter the taglines separated by a '%' in a line by itself. This is the same format as the program fortune, so you can just paste from fortune tag files if you want.






Jun 14, 2008
Trent The Thief User

CAUSES A PROBLEM IN GMAIL V1.X
With script enabled, modifications to gmail signatures are used ONCE. Then, gmail begins using the unmodified/previous signature. I shuffled script loading order, wiped out cookies, etc. I spent over an hour troubleshooting. The script does use random the taglines as advertised, the problem is that it hoses the regular gmail signature.

WORKS IN GMAIL V2.0
In gmail v2.0 (the one with chat), the script works without conflicts.

 
May 7, 2008
CoolNick User

Sorry if you already seen this explanation of Google, but may by it helps to solve the issue with this Script

http://gmailblog.blogspot.com/2008/01/gmailgrea...

 
Apr 11, 2008
Jake Lauer User

http://userscripts.org/scripts/show/24913

 
Apr 3, 2008
Jake Lauer User

Is there ANY way this can be updated? I love Gmail v2, but I don't want to switch to it because I don't want to lose the functionality of this!

If anybody is wondering, the way to make GMail stay in v1 is to change the language settings to English (UK).

 
Feb 1, 2008
Dhruva Sagar Scriptwright

Wish I could somehow make this to work! I will try it this weekend, this scripts rox dude, I just wish I or you or anybody can get it to work on the new GMail too...

 
Jan 23, 2008
N Flanders User

Robson, I loved this script, but with Gmail v2 it has stopped working.

Here's a vote for an update!

We appreciate your time and work.

 
Jan 17, 2008
enmi User

Robson,
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

 
Dec 19, 2007
MrFocker User

It appears the new version of gmail is using a dynamically generated id for the textarea instead of a fixed one (atleast the 2 or 3 mails I opened and checked the values of the textarea were different. However the name of the element is fixed so maybe one of us can update the script to look at the name instead...

 
Nov 6, 2007
dfm User

This seems to have stopped working in the new version of GMail. Any chance it's going to be updated? (BTW, thanks for having put it together in the first place -- it's what allowed me to happily migrate to the GMail interface at all!)

For others fighting with this problem, the old version still works fine. I don't know how long Google's going to keep it going, though. If like me you're annoyed at constantly having to hit that "Older Version" link in GMail, you may benefit from the hack I'm using to get around it -- I've changed my link to GMail to add "?ui=1" and that seems to keep me consistently going into the old one.

 
Apr 9, 2007
ned User

Great script! Thank you. I use Google Apps the branded version of Gmail. The script causes JS errors. I don't know if it causes the same errors on Gmail.

The error is:

document.getElementById("prf_g") has no properties
undefined
gmailrandomsignature.user.js (line 163)

Also in "Settings" I when I select the "No taglines" Radio Button I am unable to Save the change.

So the only way to disable the Random Signatures is to disable the script in the "Manage User" Interface of Greasemonkey.

Despite the errors and the broken Settings Radio button the script still works and inserts random signatures.

I don't have the skills to fix the problem... i'm a designer. But I can help test any fixes.

Additional Request: Enable the script to add HTML signatures... that would rule.

 
Nov 22, 2006
Pali User

Hi, plz I would like to know If is it possible to put random signature in front of the original-the one put by gmail. Thanks.

 
Nov 20, 2006
peuh-bugmenot Scriptwright

Why does this page always say: "Script was last updated on <today>"? Surely the script is not updated every day. What gives?

 
Sep 11, 2006
Adam Stewart... Scriptwright

When it works, it is an excellent script!
Here is when it works:
*In the main GMail page, select compose or press 'c' (if keyboard shortcuts are enabled). A random tagline will adorn your fresh email.
Here is when it doesn't work:
*When you click on mailto links or send link - this is especially true if only the "compose" window is loaded and not an entire GMail page. I find the former a very fast way to shoot off an email, as it closes when done. Unfortunately this is not supported and only the first tag of your taglines list is printed.

 
Aug 18, 2006
ClintJCL User

Too bad this requires Firefox/Greasemonkey, because I also send emails from work where the only choice is IE.

I would like a bookmarklet that simply uses javascript to pull a random quote from a file (c:\quotes.txt), and simply append it to whatever text field i am in. so I would simply sign my messages by clicking the button.

More work, but I think it would work in more situations. Not just gmail, but anywhere (like right here).

 
Apr 26, 2006
Robson Braga... Script's author

Updated to fix the script for the new gmail layout.

 
Apr 20, 2006
jeroen User

There seems to be a new issue, through i'm not sure if it's due to the firefox 1.5.0.2 upgrade or some new gmail change.

The getUsername function no longer works, and i didn't really find another way to retrieve the username ... so for now i just hardcoded my own username in the script ...

 
Mar 12, 2006
Trent The Thief User

Robson, great work! I'm so glad to have the random sigs working now. I wish Google would stop "tweaking" gmail and hire you instead!

 
Mar 10, 2006
Robson Braga... Script's author

Updated script:
- Workaround for bug in Firefox 1.5.0.1.
- Fix for new Gmail layout.
- Make it faster when loading Gmail.

 
Feb 24, 2006
Trent The Thief User

Hi Robson,

Where I am, we're using your script and the signature float userscript. Both seem to have been crashing us out for three days, but for some reason (without updating scripts or firefox or anything) both are working today. I suspect it had something to do with chat in gmail. I'm running gmail _without_ the chat client now. Your script and the sig floater are exactly what gmail needed. Thanks for the time and work!

 
Feb 23, 2006
Robson Braga... Script's author

Shiloh, what other userscripts are you using with Gmail? Please, send me an email as it is easier to track the conversation that way. The email is in the script source code.

 
Feb 23, 2006
Shiloh Madsen User

Hmm...crashes my computer every time I load up gmail. Running the latest version of the script and the latest version of greasemonky (just reinstalled for this script). Firefox is ver 1.5.0.1. Any ideas?

 
Feb 13, 2006
kaz User

This script seems to cause firefox to crash when used with "GMail CSS Skin" userscript OR "Gmail Skins 0.8" extension

 
Feb 3, 2006
Dylan User

The new version works like a charm. I really wish i understood the whole greasemonkey stuff i still would like to see a button that lets you see the next random signature (just in case you don't like the one that is currently showing). But i must say kudos to the great script and the great fix.

 
Jan 26, 2006
Trent The Thief User

I don't know what's causing the exception, but I can do it every time. Disabling either script fixes it. I checked the spam count hider and there's a bit of .css linked there that I added to my userContent.css. It hides the spam count just fine.
Robson, thank you for all the effort on this script! You, too, Kaz, for helping him test!

 
Jan 24, 2006
kaz User

thanks for the update! spamcounthider still works still works for me as well. Is there a reason theres an extra \n inserted into line 196? I've found this extra newline annoying and always edit the script: (['p', ['sx_sg', static_part + dynamic_part]])

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