The Pug Automatic

Fixed-size scrollable quotes in LiveJournal comment notification mails

Written August 31, 2006. Tagged Greasemonkey, JavaScript, Firefox, Thunderbird, LiveJournal.

Though not a new hack, I thought I should blog this as it (well, the Thunderbird part) is hidden away in a comment.

When people reply to your LiveJournal posts or comments, you can receive e-mail notifications. It's lovely that these notifications quote whatever post or comment they are in reply to, but especially for comments on long posts with loads of images, things can get very scrolly and jumpy.

I wrote a Greasemonkey script to tuck the quote away in a small, fixed-size scrollable box when using the SquirrelMail web mail client.

I later realized this could be done in Thunderbird, too. It's simply a matter of changing your userContent.css to include e.g.

table + blockquote {

Obviously this has some risk of overgenerating, but I have never received any other mail with blockquotes after tables.