Skip Links

Network World

  • Social Web 
  • Email 
  • Close

Greasemonkey and meta-analysis

Greasemonkey allows you to use scripting to modify and manipulate the contents of Web pages
Web Applications Alert By Mark Gibbs , Network World , 10/13/2008
Gibbs
Sign up for this newsletter now!

Mark Gibbs shares Web site tips and provides advice on getting the most out of your apps.

  • Share/Email
  • Comment
  • Print

If you've not come across Greasemonkey before and you're at all geeky you need to check it out. Greasemonkey is a Firefox browser add-on that allows you to use scripting in JavaScript to modify and manipulate the contents of Web pages.

Say, for example, you’d rather have a blue pinstripe background to the Google home page, Greasemonkey is how you’d do it. Your script would be triggered by loading the Google URL and would then traverse the page’s Domain Object Model (DOM) to find the body tag and re-write it specifying the URL of the desired background as the attribute of the background property.

Some of the scripts users have created and placed in the public domain are amazing. For example there’s LabelLinks4Gmail that works with Gmail and “allows you to label your labels as well as your e-mails, combining the best of both worlds.” A great idea.

This last script illustrates how complex interactions between Greasemonkey and Web pages can be. Here’s an even more interesting example: Memeorandum Colors.

Using an algorithm that scored every blog on the Memeorandum site according to how often and which political sites they link to, the creator of Memeorandum Colors built a Google Docs spreadsheet that indicates the blog author's political focus (that is, what the blog author is paying attention to not the blog author’s political persuasion).

Using a Greasemonkey script, Memeorandum Colors parses the page content when the user is on Memeorandum and colorizes it according to political bias (with color saturation showing the degree of bias) as calculated by the Google Docs spreadsheet.

Now exactly how useful Memeorandum Colors is as an intelligence tool in assessing the political tenor of the blogosphere I’m not sure but what is interesting is the concept of deriving metadata from one set of resources and then applying the result through another resource to illustrate bias or orientation.

This kind of off-the-cuff meta-analysis is going to become much more common as people find new ways to analyze and re-purpose everything from shopping recommendations to, as in this case, political commentary. This is a fertile playground for geeks, but for the naïve public it is going to be a minefield of half-truths, misinformation, and spin.

Mark Gibbs is a consultant, author, journalist, columnist and blogger.

  • Share/Email
  • Comment
  • Print
Comments (1)
Login
Forgot your account info?

Greasemonkey and meta-analysis By Anonymous on October 13, 2008, 12:37 pmHummm, a rare moment when an article for the computing world -- No matter that it is the oldest of hats presented. Comment made, since this section seems to write...

Reply | Read entire comment

View all comments

Add comment
Anonymous comments subject to approval. Register here for member benefits.
Have a NetworkWorld account? Log in here. Register now for a free account.

Videos

rssRss Feed