Thursday 2 July 2009

Greasemonkey: mudconnect.com

The Mud Connector as a web site does not look that bad. But on a widescreen laptop, there's limited vertical screen space, and mudconnect.com has a header and footer dynamically inserted on every page that sucks up too much of that limited space.

This very simple Greasemonkey script removes that header and footer, giving back the screen space it otherwise sucked up.

// ==UserScript==
// @name MudConnect Page Space Reclaimer
// @namespace http://www.disinterest.org
// @description Removes screen space wastage
// @include http://www.mudconnect.com/discuss/discuss.cgi*
// ==/UserScript==

var theSpaceWaster, altText;
theSpaceWaster = document.getElementById('headerwrap');
if (theSpaceWaster) {
altText = document.createTextNode("");
theSpaceWaster.parentNode.replaceChild(altText, theSpaceWaster);
}
theSpaceWaster = document.getElementById('footerwrap');
if (theSpaceWaster) {
altText = document.createTextNode("");
theSpaceWaster.parentNode.replaceChild(altText, theSpaceWaster);
}

No comments:

Post a Comment