Dive Into Greasemonkey (Greasemonkey Hacks)

Dive Into Greasemonkey (Greasemonkey Hacks)

Dive Into Greasemonkey or Greasemonkey Hacks is a book about programming with Greasemonkey, a Firefox extension for customizing web pages. Dive Into Greasemonkey is a free download, available in a variety of formats. 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 web site more readable or more usable. You can fix rendering 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 a web page out loud or convert it to Braille. You can even automatically retrieve data from other sites to make two sites more interconnected.


Greasemonkey by itself does none of these things. In fact, after you install it, you won’t notice any change at all… until you start installing what are called “user scripts”. A user script is just a chunk of Javascript code, with some additional information that tells Greasemonkey where and when it should be run. Each user script can target a specific page, a specific site, or a group of sites. A user script can do anything you can do in Javascript. In fact, it can do even more than that, because Greasemonkey provides special functions that are only available to user scripts.

Table of Contents

  • Getting Started
  • Your First User Script
  • Debugging User Scripts
  • Common Patterns
  • Case Studies
  • Advanced Topics

Book Details

Author(s): Mark Pilgrim
Publisher: O’Reilly Media
Format(s): HTML
Number of pages: 496
Link: Read online.

Leave a Reply