skip to main | skip to sidebar
Loading...
You have reached the blog of
Matthew Gray
matthew@gray.org
I am a father, board gamer and software engineer.

Internet

In addition to my blog (this page), you can find me on BoardGameGeek, Twitter, Flickr, LinkedIn, FriendFeed, and various other places. I also have a slightly stale homepage.

Personal

I am an avid board gamer. I am one of the (volunteer) admins of BoardGameGeek, maintainer of the GameStoreDB, board game blogger, and gaming software geek.

Professional

I am a staff software engineer at Google. Previously, I was the CTO at an 802.11 location and security company, Newbury Networks in Boston. In June, 1999 I received my Masters degree from the MIT Media Lab. I graduated from MIT (undergraduate) in June, 1997, in physics. Prior to that I was CTO of net.Genesis from 1994 to 1996.

While at MIT, I was one of the three members of the Student Information Processing Board (SIPB) who set up www.mit.edu in the spring of 1993. I am also a former/inactive member of the Apache group, a volunteer group of developers of Apache, the world's most popular web server.

Blog

Sunday, January 9, 2005

Grease Monkey

Greasemonkey is a plugin
for firefox that lets you run "user scripts" on particular web pages
automatically. When I last played with "bookmarklets" it occured to
me that it would be useful to have the automatically execute some of
these whenever particular pages are loaded. That's exactly what
grease monkey has done. If you install greasemonkey, you should be able to right-click or control-click on the userscripts to install them.

Combine it with href=http://www.w3schools.com/xpath/xpath_location.asp>xpath and
you have a rather nice system for mucking with web pages. For example, slashdot has some really awful color schemes on some pages. I wrote a greasemonkey userscript to fix slashdot's colors. It does its best to change all existing background colors to the default. This might be doable with a cleverly written user style sheet, but given the lack of element classes in the slash HTML, maybe not.

One of the things that bugs me on a lot of web pages is that there's a
lot of unneeded garbage around the edges. In particular, the
following layout is common:





banner
navcontent



A recent article points out that many folks ignore them anyway.
So, I wrote a couple of userscripts to extract the content section and put it at the top. The remaining "shell" of a page is left at the bottom in case you want it. That part ends up looking weird, but the main content is nicely and more clearly positioned at the top of the page. Here are the userscripts: Weather Underground reorganizer and CNN story reorganizer. Or, if you'd rather just remove the CNN side navbar.

I'll probably write some more of these, which I'll post to this section of my blog. I may also create a better userscripts page, which is for the moment a placeholder that links back here.

Other userscripts I know about, other than those on the greasemonkey site:


  • Fixes to MSDN
  • Tweaks to Bloglines posting

Posted by Matthew Gray at 7:45 PM
Labels: Javascript, Technology

0 comments:

Post a Comment

Newer Post Older Post Home
Posts feed Add to Google Reader or Homepage Subscribe in Bloglines // Comments feed

Recently Played

www.flickr.com

Popular Posts

Blog Archive

  • ►  2010 (2)
    • ►  January (2)
      • 2009 Games Summary
      • Ten Years of Games
  • ►  2009 (6)
    • ►  September (2)
      • People who are unintentional "spoilers"
      • Davis Mega Maze via GPS
    • ►  April (1)
      • Google's architecture through the eyes of a 4-year...
    • ►  March (1)
      • Mozy review: It doesn't work
    • ►  February (1)
      • Recent sci-fi reading
    • ►  January (1)
      • 2008 Games Summary
  • ►  2008 (27)
    • ►  December (1)
      • Lanna Thai Diner Review
    • ►  November (5)
      • Atom feed of your recently played games
      • In praise of short games
      • 1000 different games
      • Simple election Monte Carlo toy
      • Request for online photo hosting/sharing suggestio...
    • ►  October (2)
      • Played a bunch of new games
      • BaordGameGeek and AppEngine
    • ►  July (3)
      • Quick iPhone app reviews
      • I play games with other people
      • Almost 4, Almost a boardgame geek
    • ►  June (2)
      • Spin and Axis reviews
      • Amusing StreetView vignette
    • ►  May (8)
      • 2008 SdJ Virtual Stock Market
      • Next stage of migration and a warning
      • Luck, Skill and Experience in games
      • Moved to Reading & Commute Analysis
      • I am a social network
      • Race for the Galaxy and variety
      • All my blogs
      • Trying out Blogger
    • ►  April (1)
      • My ScanSnap Workflow
    • ►  March (2)
      • Much Better, reprise
      • A couple more: Parkour and Speed Stacking
    • ►  January (3)
      • Every Year Games
      • Games of the year, 2007
      • 2007 Games Summary
  • ►  2007 (12)
    • ►  September (1)
      • Gaming impact of children
    • ►  April (5)
      • Hot at the Gathering
      • Buy, Maybe, No Buy
      • Newly played at the Gathering, Brief Comments, Tue...
      • Friedemann charms a 2-year-old
      • Gathering 2007, appetizer
    • ►  March (3)
      • Game Card Catalog
      • Gamer, age 2
      • Full Circle
    • ►  January (3)
      • BoardGameGeek Ratings
      • 2006 Games Report
      • Game Metrics for 2006
  • ►  2006 (36)
    • ►  December (2)
      • Games of the year, 2006
      • My BGG tools and toys
    • ►  November (3)
      • Great Service
    • ►  September (3)
    • ►  August (3)
    • ►  July (1)
    • ►  June (2)
    • ►  May (5)
    • ►  April (8)
    • ►  March (2)
    • ►  February (1)
    • ►  January (6)
  • ▼  2005 (62)
    • ►  December (3)
    • ►  November (3)
    • ►  October (6)
    • ►  September (2)
    • ►  August (4)
    • ►  July (3)
    • ►  June (4)
    • ►  May (4)
    • ►  April (13)
    • ►  March (7)
    • ►  February (3)
    • ▼  January (10)
      • Blizzard of January 2005
      • Heroscape Unit Creator improvements
      • Userscript: Delicous Sort
      • Greasemonkey 0.2
      • 2004 Games Report
      • Greasemonkey: Interstitial Skipper
      • Grease Monkey
      • Del.icio.us Categories
      • Game Metrics for 2004
      • 5s and 10s for 2004
  • ►  2004 (87)
    • ►  December (5)
    • ►  November (4)
    • ►  October (10)
    • ►  September (5)
    • ►  August (7)
    • ►  July (6)
    • ►  June (10)
    • ►  May (6)
    • ►  April (10)
    • ►  March (11)
    • ►  February (4)
    • ►  January (9)
  • ►  2003 (17)
    • ►  December (7)
    • ►  November (5)
    • ►  October (2)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
  • ►  2002 (43)
    • ►  December (2)
    • ►  November (2)
    • ►  October (3)
    • ►  September (3)
    • ►  August (3)
    • ►  June (1)
    • ►  May (6)
    • ►  April (7)
    • ►  March (13)
    • ►  February (3)

Disclaimer

I work for Google as a Software Engineer. This is my personal blog. The views expressed on these pages are mine alone and not those of my employer.