How to write Greasemonkey scripts

by nixcraft · 5 comments

Greasemonkey is a Mozilla Firefox extension that allows users to install scripts that make on-the-fly changes to specific web pages. Greasemonkey can be used for adding new functionality to pages.

Most Greasemonkey user scripts are written by hand, using site-specific JavaScript code which manipulates the contents of a webpage using the Document Object Model interface

Dive Into Greasemonkey is a book about programming with Greasemonkey, a Firefox extension for customizing web pages. According to this book "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."

The book covers installation of Greasemonkey to various Advanced Topics. I find it very helpful. This book, its sample code are under terms of the GNU General Public License.
=> Download PDF Version (167K)

=> Download HTML Version (253K)

=> Read online.

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 2 trackbacks }

EveryDigg » Blog Archive » How to write Greasemonkey scripts
01.29.07 at 6:56 pm
My First Greece Monkey Script « Kari’s Weblog
12.04.08 at 11:10 am

{ 3 comments… read them below or add one }

1 Shane 11.15.06 at 2:06 am

Yea greasemonkey is pretty awesome in the right hands. But you put it in the hands of Jason Calacanis it can be downright eveil. Its no secret I can’t stand jason calacanis. I rant about him all the time on http://www.newreddigent.com/blog/

2 _asais 11.18.06 at 7:17 pm

Didn’t know about these Greasemonkey scripts, but is sounds like something interesting :)

3 Heinz The Man 06.16.08 at 3:23 pm

If you install IE7 Pro which is an add on for Internet Explore, you can also get greasemonkey scripts for IE7.
Besides you get a lot other, like adblocker and so on.

// Heinz The Man

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: