RKG Logo 434-978-4300

GreaseMonkey is a Firefox extension that lets you run arbitrary Javascript code against selected web pages.

greasemonkey2What this means is that GreaseMonkey lets you change how other people’s web pages look and how they function (but just in your own browser, of course).

I last played with GreaseMonkey (GM) about four years ago. Then, I didn’t find the idea compelling. Today, with ever more applications going online, GM is worth a serious look.

GM can increase productivity by making web apps easier to use.

Even more interesting, GM also lets you add functionality to web pages. Here’s a small example. I use Delicious to bookmark sites. I used Google Reader to read blogs, and I tag interesting posts with Reader’s “gold star” button. Via a few lines of GM code, Google Reader now sends my starred items to Delicious automatically. This improvement keeps all my interesting links in one place.

GM works on intranets, too.

Suppose you’re an online retailer and your merchants use an intranet app to enter product information for your site. Suppose that app had some UI annoying issues, like extra confirmation screens after entering each product (“Are you sure you want to add the following?”) If your vendor or your internal IT folks can’t (or wont) change the app, you could use GM to skip the unnecessary page.

Or perhaps your call center staff uses an intranet app for order entry. If they’re retyping or pasting telephone data from phone pop into the order entry app on each call, perhaps the phone app could write its data to a local file (maybe) which GM then used to prepopulate fields in order app.

A GM script could even prepopulate web app fields from database lookups (you’d need to expose the necessary data via some simple restful url, behind the firewall).

Certainly hacky, certainly not ‘beautiful’ engineering, but GM opens up interesting possibilities.

Here are the GM pros and cons as I see them.

Pros:

  • Javascript. GM code is just Javascript code. Any developers familiar with Javascript and the DOM can write GM scripts.
  • User scripts. If you’re seeking a common sense improvement to a popular site, someone probably has already written a GM script to do it. For example, here are popular scripts tweaking Google sites.
  • Cross-site scripting. Unlike the security model in common AJAX, GM code can access the entire web: “Unlike the XMLHttpRequest object, GM_xmlhttpRequest is not restricted to the current domain; it can GET or POST data from any URL” (from DiveIntoGreaseMonkey). This is very powerful.

Cons:

  • Scraping stinks. Fundamentally, GM is screen-scraping. Yuck. If your target site changes their design, your GM script probably croaks.
  • Ffox preferred. GM runs best in Firefox. Some GM scripts run on Chrome, but some do not. (Specifically Chrome does not support the GM_ functions, including GM_xmlhttpRequest.). Here’s info on the “–enablegreasemonkey” flag in Chrome, and here’s info on GreaseMetal . I’ve not used it, but IE has GM4IE.
  • Reality warp. If you forget you have GM turned on, or if you assume GM is on when it isn’t, or if you switch to a computer without GM, you can get confused when a familiar web page behaves “strangely.”
  • Debugging. Sometimes it is hard to understand why a GM script isn’t working. Firebug is essential.
  • Local install. The GM extension and scripts are installed locally, not in the cloud. Installing them on your laptop doesn’t put them on your desktop, etc. Script updates need to be maintained on each machine.

And here are some GM links I found useful.

Any readers out there using GreaseMonkey for business purposes?

greasemonkey

Technorati Tags: , , , , , , , , , , , ,

If you like this post, consider subscribing to our RSS feed. You can also have new posts sent to you via email.


Related Posts

Comments

  1. atul chatterjee, May 21, 2009:

    The part of the Google Reader is the most interesting to me since I use Reader a lot. Will have to see how I can try it out.

Your Comment

Trackback

http://www.rimmkaufman.com/rkgblog/2009/05/20/greasemonkey/trackback/

Blogs Citing This Post

  1. Pingback: Daily News About Firefox : A few links about Firefox - Wednesday, 20 May 2009 03:30 on May 20, 2009
  2. Pingback: GreaseMonkey: Google Reader Gold Stars Automatically Post To Delicious on May 26, 2009

Email Updates

Categories

Recent Comments

  • Mark Ballard: Cory, I don’t see this as an SEO v. PPC issue. The core of my argument is that CTRs are lower primarily due to misleading...
  • Cory Grassell: What are your thoughts on stats that suggest consumers are more apt to click on organic search results than PPC results? As a...
  • George Michie: Kevin, Marc, thanks for your comments. Help is coming, but not the solution. There are a number of instances when the CTR on the...
  • Marc Adelman: George, You have been an advocate of “the advanced control option” for years now. Depressing right YEARS! Eh…listen...
  • Kevin Hill: Is what they really need is a fourth match type. Here’s google’s help documentation on broad match: This is the default...
  • Kevin Micalizzi, Dimdim Web Conferencing: Jim (& George)- We still offer a free version of Dimdim. Just click Sign Up Now at the top of the...
  • Tomas: indeed, i can’t talk about it either… :)
  • Philip Price: Thank you for the RegHack, it worked for me, tho at first when i made the reg file with the information i copied from above i also...
  • George Michie: Sorry Jim, this post was written in 2007. Apparently some of those products are gone.
  • Jim: Hey, I checked two products like dimdim and cutepdf but none is free. What are you talking about free and open source?
  • George Michie: If they keep hearing the same message, and seeing evidence in the data to back it up, something will have to give. There is hope on...
  • Tomas: I’ve been having the same argument with Google for months now and in the end there does seem to be a feature in the algorithm that...
  • George Michie: Doesn’t have to be, it can be intra-adgroup as well.
  • Josh: George – I take it you’re referencing a scenario where your exact-match keywords are not listed as negative exact match keywords...
  • George Michie: Melissa, you’re right, it’s always happened to varying degrees, particularly since the advent of extended broad match....

Blog Stats

  • Posts: 948
  • Words: 451,089
  • Comments: 2,877

Administration