Eee PC Greasemonkey Script

Inspired by Paul Fenwick’s entertaining talk on cleaning up the web at LCA (in other words, I ripped it off) I set out to make google reader more useable on the Eee.

But first, an invaluable Firefox plugin to have for the Eee is Nuke Anything Enhanced. It lets you right click on an object on a web page, and “nuke” it, make it disappear. The screen then rearranges itself using the space you just created. It gives you more reading room, and less clutter. It’s not gone for good, though, if you reload the page it will be back. It’s fine for one off things, but if it’s a page you’ll be opening frequently, like google reader in my case, you’ll want a permanent solution. Enter greasemonkey.

// ==UserScript==
// @name google reader for eee pc
// @namespace http://chesterton.id.au/
// @description Removes unnecessary elements
// @include http://*.google.com/reader/*
// ==/UserScript==

hideContent('selectors-box');
hideContent('gbar');
hideContent('logo');
hideContent('global-info');

function hideContent(id) {
   var node = document.getElementById(id);
   if (node) {
     node.style.display = "none";
   }
}

So I ripped hideContent off from Paul, I found with google reader removing the object broke the page, but hiding it worked, so I modified his function a little. I think his was called removeContent, or similar, and deleted rather than setting the display style to none.

Save the code as (eg) googlereader.user.js and open it in firefox. The .user.js part of the file name is important, the first part isn’t. Obviously you need to install greasemonkey, too.

Google Reader Greasemonkey Script

Related posts:

  1. WordPress Nginx Admin
  2. Web Server Admin
  3. Eee PC Ubuntu WiFi On/Off
  4. Trigonometry Blues
  5. In My Spare Time…

Post a Comment

Your email is never shared. Required fields are marked *

*
*