Greasemonkey – What Is?

5 October, 2005 at 14:24 Leave a comment

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.

There is a Greasemonkey script repository that contains hundreds of user scripts that people have written to scratch their own personal itches. Once you write your own user script, you can add it to the repository if you think others might find it useful. Or you can keep it to yourself, content in the knowledge that you’ve made your own browsing experience is a little better.

There is also a Greasemonkey mailing list, where you can ask questions, announce user scripts, and discuss ideas for new features. The Greasemonkey developers frequent the list; they may even answer your question!

Why this book?

Dive Into Greasemonkey grew out of discussions on the Greasemonkey mailing list, and out of my own experience in writing user scripts. After only a week on the list, I was already seeing questions from new users that had already been answered. With only a few user scripts under my belt, I was already seeing common patterns, chunks of reusable code that solved specific problems that cropped up again and again. I set out to document the most useful patterns, explain my own coding decisions, and learn as much as I could in the process.

This book would not be half as good as it is today without the help of the Greasemonkey developers, Aaron Boodman and Jeremy Dunck, and the rest of the people who provided invaluable feedback on my early drafts. Thank you all.

Advertisements

Entry filed under: Computers/ICT, Projects, Research, WebXP.

Rebranding FairTrade – Student Enterprise Idea Cartoonizized – Science ‘n’ Nature

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

October 2005
M T W T F S S
« Sep   Mar »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Tweets


%d bloggers like this: