The Pug Automatic

Gmail Greasemonkey scripts: bottom posting, plain text formatting

Written March 26, 2007. Tagged Greasemonkey, JavaScript, Firefox.

I'm trying out Google Apps on a test domain (nyh.name) to see if I want to let them handle my e-mail and IM.

I currently use Thunderbird, with SquirrelMail for web mail. Since Gmail doesn't support IMAP, I'd probably use their web interface most of the time, and so I've been writing Greasemonkey scripts to fix some things I'd miss from Thunderbird. I made two so far.

Bottom posting in replies

I find bottom posting sensible. Gmail abstracts away posting styles when you're reading mail, by collapsing quotes inside mails and displaying preceding mails above the one you're reading. This is great, but what's not so great is that replying in Gmail caters to top posting, with no option to have the caret inserted after the quote. Though you barely notice the difference as a Gmail user, it's a courtesy to people with other mail clients.

The Gmail bottom posting in replies userscript puts the caret after the quoted text when replying, shuffling whitespace as appropriate.

Plain text formatting

Thunderbird and some other clients support some enhanced plain text features, like visually bold-facing, italicizing and underlining text between two asterisks, slashes and underscores, respectively, in plain text mails.

With Gmail plain text formatting, Gmail does this too:

[Screenshot]

Userscripting Gmail is difficult, what with it being AJAXED TO THE MAX, but it's a lot of fun for the same reason.