PDA

View Full Version : Greasemonkey script to un-narrow forum.


hark
November 17th, 2008, 19:50
I'm pretty conservative with screen space, and didn't really like that the forums are contained within a 80%-width div. The pages were hard to read because they got squashed together, so I wrote a quick GreaseMonkey script to make the main content div use the entire width of the screen (I think I suffer from horror vacui):
// ==UserScript==
// @name FreeBSD Forums Full-Width
// @namespace hark
// @include http://forums.freebsd.org/*
// ==/UserScript==

(function () {
var divs = document.getElementsByTagName( 'div' );
for ( var i in divs ) {
var div = divs.item( i );
if ( div.className == 'page' )
div.style.width = '100%';
}
})();
While I think the site should be served this way by default, I can accept that it's simply an aesthetic issue and probably won't be changed. Just thought I'd share the script in case anyone else felt similarly. Figured I'd drop it here in the feedback section, simply because it seems like the most appropriate place for forum meta-discussion.

bsddaemon
November 17th, 2008, 20:05
Good idea, thank you. It works with my Opera, and Im sure it will do with Firefox, too :)

lazyBSD
November 17th, 2008, 20:39
it will do with Firefox, too :)
Confirm. Works with Firefox 3.0.4.

graudeejs
November 17th, 2008, 20:43
Why won't admins just let 100% :D

lme@
November 20th, 2008, 20:13
Could someone write me a greasemonkey script which removes the FreeBSD heading in the forums? On my eeePC I need every pixel. ;)

graudeejs
November 20th, 2008, 20:35
Could someone write me a greasemonkey script which removes the FreeBSD heading in the forums? On my eeePC I need every pixel. ;)

you can use addblock and addblock+ for that