How to rewrite your favorite Web sites.

Inside the Internet.
Sept. 26 2005 1:05 PM

How To Monkey With the Web

The software that lets you rewrite your favorite sites.

Illustration by Mark Alan Stamaty.
Click image to expand.

I can't go a day without checking Boing Boing, the quirky blog that throws vintage art, live posts from hurricane zones, and Japanese robots onto the same page. The problem is that I work in an open office where everyone can see my screen, and Boing Boing's home page is festooned with scantily clad T-shirt models and ads for soft-core porn sites. Wouldn't it be great if I could turn those ads off at the office?

Thanks to a piece of software called Greasemonkey, I can do that and lots more. Greasemonkey, a plug-in for the Firefox browser, allows you to run "user scripts"—Javascript programs that tweak other people's Web pages after you've loaded them. (In theory you could pull this same stunt with Internet Explorer, but no one's offered the software yet.) Most commercial sites already have Javascript programs nested inside that turn menus on and off or respond when you press a button. Google Maps is a great example—it's more program than page.

Advertisement

Greasemonkey lets you play Web designer. Instead of settling for a site's out-of-the-box appearance and functionality, you can stuff in your own Javascript apps. User scripts can rearrange or remove images, add links and buttons, even mix content from multiple Web sites onto the same page. Greasemonkey doesn't mess with the entire Internet. The software waits until a page is downloaded to your local machine, then modifies it on your screen only—when I hide Boing Boing's cheesecake, the girlie pics are still there for every other Web surfer.

Don't worry, you don't have to write the scripts yourself. Gung-ho Greasemonkey acolytes have already written a few thousand mini-applications that, for example, add competitors' prices to Amazon's book pages, install extra buttons on Google, and increase the security of Yahoo! Mail sessions. All of this is a shocking reminder that Web pages aren't static. Talk of the spread of "remix culture" has become standard fare—we TiVo past commercials, burn mix CDs, and make Bush and Blair lip-sync to "Endless Love." But site designers have somehow convinced us that their pages are as immutable as a glossy brochure. Greasemonkey resurrects the Web's original spec: Page layouts are just suggestions, people. Everything is remixable.

When I wrote about Greasemonkey for Wired recently, I argued that this simple program had the potential to mess with the business models of e-commerce sites. Many user scripts undo copyright protection, remove ads and sponsored links, or end-run registration pages. The experts I interviewed predicted a cops-and-robbers battle between site owners and script hackers. Greasemonkey might make the Net a better-designed place; it might just rob online vendors of their revenue.

(You might've heard that Greasemonkey will also make the net a less secure place. Reports that the software has a massive security hole are out of date, though. That bug, which was never exploited, got patched within days back in July. That's not a 100-percent security guarantee, but be aware that Firefox has yet to see the kind of real attacks that barraged Internet Explorer last year.)

Readers e-mailed to say all of this would be really interesting—if only they could get the damn thing to work on their computer. Indeed, Greasemonkey's makers stunted its superpowers with a standard geek blunder: There aren't any installation instructions.

That's easy to fix. It takes five minutes to get Greasemonkey up and running, and you won't have to close this page to do it. To see my step-by-step instructions, click here.

Once you have Greasemonkey installed, you're ready to take a tour of the Web as customized by its users. The best place to start is Userscripts.org, a repository of 1,800 mini-applications that address a laundry list of gripes. Install the BoingBoing Butler, and—voilà!—Boing Boing's ad-laden sidebars appear briefly, then wink out of existence. The middle strip of stories widens to fill the empty space.

Userscripts.org also includes applications that let you fix CNN's buggy video links and eBay's feedback pages, which (until now) didn't let you hide all the positive posts and show just the complaints. You can add Internet Movie Database ratings to Netflix movie pages, or Blockbuster links to IMDb. Ad-remover scripts are popular, but the cooler ones clean up awkward sites or add obvious features that the designer left out. There are dozens of scripts just for Google. One Gmail widget puts a Delete button right where Sergey and Larry left it out. Another adds a history of your recent searches whenever you revisit the site.

TODAY IN SLATE

Doublex

Crying Rape

False rape accusations exist, and they are a serious problem.

Scotland Learns That Breaking Up a Country Is Hard to Do

Are You Attending the People’s Climate March? Nine Reasons You Should.

The Music Industry Is Ignoring Some of the Best Black Women Singing R&B

How Will You Carry Around Your Huge New iPhone? Apple Pants!

Medical Examiner

The Most Terrifying Thing About Ebola 

The disease threatens humanity by preying on humanity.

Television

The Other Huxtable Effect

Thirty years ago, The Cosby Show gave us one of TV’s great feminists.

There’s a Way to Keep Ex-Cons Out of Prison That Pays for Itself. Why Don’t More States Use It?

Colorado Is Ground Zero for the Fight Over Female Voters

Behold
Sept. 19 2014 11:33 AM An Up-Close Look at the U.S.–Mexico Border
  News & Politics
Foreigners
Sept. 19 2014 1:56 PM Scotland’s Attack on the Status Quo Expect more political earthquakes across Europe.
  Business
Moneybox
Sept. 19 2014 12:09 PM How Accelerators Have Changed Startup Funding
  Life
Inside Higher Ed
Sept. 19 2014 1:34 PM Empty Seats, Fewer Donors? College football isn’t attracting the audience it used to.
  Double X
The XX Factor
Sept. 19 2014 1:11 PM Why Men Never Remember Anything
  Slate Plus
Slate Picks
Sept. 19 2014 12:00 PM What Happened at Slate This Week? The Slatest editor tells us to read well-informed skepticism, media criticism, and more.
  Arts
Brow Beat
Sept. 19 2014 1:39 PM Shonda Rhimes Is Not an “Angry Black Woman,” New York Times. Neither Are Her Characters.
  Technology
Future Tense
Sept. 19 2014 12:38 PM Forward, March! Nine leading climate scientists urge you to attend the People’s Climate March.
  Health & Science
Medical Examiner
Sept. 19 2014 12:13 PM The Most Terrifying Thing About Ebola  The disease threatens humanity by preying on humanity.
  Sports
Sports Nut
Sept. 18 2014 11:42 AM Grandmaster Clash One of the most amazing feats in chess history just happened, and no one noticed.