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