I wrote my first Greasemonkey script this week.
Greasemonkey is a Firefox extension that lets you modify the way webpages look and function (on your computer). It's really cool. It uses client-side javascript tricks to alter pages after they get downloaded to your computer. If you want to change the way Gmail looks or create a keyboard shortcut for a certain button you click on all the time, there's probably a way to do it through Greasemonkey.
The script I wrote adds some functionality to one of my favorite web apps:
Google Reader. I use Google Reader all the time and I've always wished I could skim through my (usually thousands of) unread items really fast with just my mouse. Google offers some nice keyboard shortcuts ("j" for next item, etc...) but for some reason I've always found their keyboard shortcuts make my arm uncomfortable after using it for any extended time. I think it's because I feel like I'm always just about to get carpal tunnel.
Anyway, I put together a Greasemonkey script that lets you toggle Google Reader in and out of what I call "mouse mode." When in this mode, left clicks move to the next item, right clicks move back to the previous item, and middle clicks are customizable (they either open the item in a tab, share the item, or star the item). You can set what you want the middle clicks to do with the supplied dropdown list. When not in mouse mode, your buttons work like normal.
I've been using Google Reader this way for a day or two and so far I'm loving it. After months of having thousands of unread items, I'm finally caught up. If you're not already attached to a certain reading style, I'd recommend giving my script a try.
To get Greasemonkey and user scripts working, you just install Greasemonkey like any Firefox extension from
here. After you restart Firefox, go
here to get my script. My script is hosted on userscripts.org (a place where greasemonkey script writers can post their scripts and discuss Greasemonkey-related stuff). You can read about my script and then click the "Install this script" button. A window will pop up saying that it's about to install. Click the Install button and that's it! Next time you go to Google Reader there will be a new button and droplist on the screen.

One cool thing about userscripts.org is that it shows how many times your script has been installed (as I'm writing this I have 57 installs). Another cool thing is that my script is already the top search result for "
google reader mouse", which is awesome.
If you're a Google Reader user, give my script a try and let me know what you think. If you don't use Google Reader or know what feed readers are, check out my Nerd City column,
Through RSS Colored Lenses.
Labels: googleReader