The TCP/IP Guide - Greasemonkey Userscript

I've just finished a short greasemonkey userscript (get the userscript here) which fixes the display of pages at the excellent, free, online TCP/IP guide at www.tcpipguide.com/free/. The TCP/IP Guide is displayed on html pages which rely heavily on html table elements for their layout and the table cell containing the main content for a page is missing a "valign" attribute and so defaults to a value of "middle" when rendered by the browser. This is annoying because there's an area of white space above the main content which is most pronounced when the browser window is very wide - see an example at this page.

Greasemonkey is a cool add-on for the firefox browser which allows you to modify and extend html pages with short snippets of JavaScript giving you some control over how those pages are displayed or alter and extend their functionality.

This particular userscript sets the "valign" attribute of the cell in question with a value of "top" - a very simple thing to do, but it took me bloody ages to get it right. If it doesn't work for you, please leave me a comment and let me know.

Get the userscript at http://jahboite.co.uk/files/js/the_tcpip_guide_fix.user.js.

Leave a comment

mt-comments.cgi" name="comments_form" id="comments-form" onsubmit="return mtCommentOnSubmit(this)">

Recent Entries

  • PicaVue

    jah has begun work on an open source javascript gallery to display his Picasa Web Albums - it's called PicaVue...

  • Nmap 5 - An Introduction

    The newest version of Nmap - Nmap 5.00 - is now available for download and is the best Nmap ever. This is a short introduction to Nmap and the Nmap family of tools: Zenmap; Ncat and Ndiff which are included with this latest release....

  • Enable apache mod_userdir on Debian

    How to enable mod_userdir for apache2 on Debian 5.0 (Lenny)....

  • Nmap 4.85BETA5 and Conficker detection

    Nmap 4.85BETA5 is now available and is able to remotely and anonymously detect hosts compromised with Conficker (downadup, kido) using an NSE script....

  • Install BackTrack 4 beta on VMware 5.5.x from the ISO image

    Here are the steps required to create a new VMware virtual machine on which to install BackTrack 4 beta from the ISO image...