Gmail greasemonkey script(s)

Maybe you’ve heard of GreaseMonkey scripts, but if not, it’s just a collection of user scripts (see userscripts.org) written in JavaScript that can be incorporated into the browser (Firefox and Flock). It’s been around for a while, but I’ve been neglecting it. It turns out that some of the scripts out there are very handy.

There are a ton for Gmail, but the one I find really useful is the multiple signatures script. I use Gmail to maintain all of my other email accounts as well, so you might want a different signature when sending email from another account (such as work). I know I do. Anyway, not often do you have to manually edit the script files, but in the event that you do, here’s how you do it:

  1. Right click on the little monkey in the bottom right of your browser (after you install GreaseMonkey that is).
  2. Select “Manage User Scripts”
  3. Choose the script you want to edit
  4. It will prompt you for an editor (first time only) to choose as your default to edit the scripts (I recommend PSPad)
  5. Edit the file, save it, close it, then click “OK” on the GreaseMonkey window
  6. Refresh your browser, and you’re good to go

Now, specifically for the multiple signatures script, you only have to edit three arrays: email_array, sig_array, col_array.

  • email_array is where you have to put all of the emails you’ll be sending to (whatever shows up in your Gmail drop down list when composing).
  • sig_array is the array that holds your signatures. Use \\n to split up multiple lines.
  • col_array is an array that holds HTML color codes, and will highlight your browser when you select that signature. I hate this option, so I set all of my colors to “transparent” so it wouldn’t do anything.

Just remember to keep the arrays in the same respective order. So if you have two emails (email1 and email2), make sure the desired signatures are in the same order (sig1 and sig2). Once it’s installed, look for the “Use Identity:” list under the “From:” drop down menu. Just click on the email you’re using, and the signature will be appended to your email.

Comments

Have something to say?
Please rewrite the image text Are You Human? Hint: Are You Human? Formatting Tips

or

© 2008 Ryan Heath | Site Management A Ruby on Rails production.

Get in Touch