GreaseMonkey/Stylish scripts to fix some UI problems

xtknight

Elite Member
Oct 15, 2004
12,974
0
71
I'm hoping that until they get around to fixing the problems on the server-side, we can use some client-side tweaks. These only work with Firefox AFAIK, but they should work on any OS.

This (Stylish script) fixes the scrollbar, sluggish movement, and posts-disappearing issue:

All credit to hg403 for discovering this one in the first place but I made a small tweak.

@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("forums.anandtech.com") {

#Forums.Box { height: 100% !important; overflow: hidden !important; }
}

----------

This (GM script) makes it so the textarea in the Reply window fills the screen properly. Also it prevents the useless horizontal scrollbar from appearing.

// ==UserScript==
// @name atfix1
// @namespace blah
// @include http://forums.anandtech.com/messagepost.aspx*
// ==/UserScript==

function newresize(event) {
var elem = document.getElementById('FTVAR_MESSAGETEXTFRM');
if(elem){
if (document.layers){
browseWidth=window.outerWidth;
browseHeight=window.outerHeight;
}
if (document.all){
browseWidth=document.body.clientWidth;
browseHeight=document.body.clientHeight;
}
if (self.innerWidth){
browseWidth=self.innerWidth;
browseHeight=self.innerHeight;
}
browseWidth = browseWidth-125;
browseHeight = browseHeight-270;
elem.style.width = browseWidth + 'px';
elem.style.height = browseHeight + 'px';
}
}

// capture the onresize event
window.addEventListener('resize', newresize, true);

GM_addStyle("body { overflow: hidden; }");

----------

Installing them isn't too hard but you do have to set a few things up if you've never used GM before (like an editor prog..I like wordpad).

Update: I made a small tweak to the GM script (-240 pixels to -270 instead since a few replies had a problem with the former value).