Twitter Quick Reply user script

Last week, John Resig created a Twitter Quick Reply bookmarklet. I wanted to make replying even faster, so I created a Greasemonkey script that adds a reply box to each tweet. If you follow a Twitter feed and reply frequently, this script could save you some time.

My script uses several advanced Gecko features. First, it uses getElementsByClassName, which was added in Firefox 3, so it will not work in Firefox 2. Second, it uses a transparent iframe background to hide the fact that there is an iframe present. (By the way, did you now that the default background for iframes is transparent? In the past, I have argued that this default is a security hole. But most sites specify a background color, so it's almost moot.)

2 Responses to “Twitter Quick Reply user script”

  1. Hao Chen Says:

    Hi,

    Could you please post a screenshot? And make it FF2 compatible. :) Thanks

  2. Jesse Ruderman Says:

    Here’s a screenshot: http://www.squarefree.com/blogimages/twitter-quick-reply.png

    I’d rather not add code to make it compatible with Firefox 2. I’m not sure it can be done at all without being a lot slower. Why don’t you update to Firefox 3? ;)