What Is Greasemonkeyby Mark Pilgrim, author of Greasemonkey Hacks
- Greasemonkey is a Firefox extension that allows you to write scripts that alter the web pages you visit. You can use it to make a website more readable or more usable. You can fix bugs that the site owner can't be bothered to fix themselves. You can alter pages so they work better with assistive technologies that speak to a web page aloud or convert it to Braille. You can even automatically retrieve data from other sites to make two sites more interconnected.
In This Article:
- Getting Started
- The Anatomy of a User Script
- Coding a User Script
- Managing User Scripts
- Finding User Scripts
Clearly, there were a lot of itches waiting to be scratched.
The first thing you need to do to get started with Greasemonkey is install it. Open Firefox and go to greasemonkey.mozdev.org. Click the Install Greasemonkey link. (At time of writing, the latest version is 0.5.1.) Firefox may not let you install it, since it maintains a whitelist of websites that are allowed to install software on your machine. (See Figure 1.)
Figure 1: Extension whitelist
Type the address sand click "Allow" to allow this site, then click the "Install Greasemonkey" link again. This time, Firefox will pop up the Install dialog to confirm that you really want to install it. After Greasemonkey downloads, quit Firefox and relaunch it to finish the installation.
As I said, Greasemonkey doesn't do anything by itself, except add a few items to the Tools menu and the right-click context menu. All Greasemonkey does is enable you to install "user scripts" that customize specific web pages.