This board needs improvement. (Incl. Greasemonkey script)
Posted: 2010 Aug 06, 02:48
OK, let's talk seriously: This board is ugly.
Barely ugly.
Why is it in our world of SXGA screens that some weirdo says "hey, let's make the page extra-narrow and put some large bars on its top"? OK, 650 pixels are a fine size, but why not make it 100% which is - on very. very bad resolutions - also 650 pixels, most likely more?
What's with the weather bar on top of this board? And why do we need the (%/§)& date as an extra line?
And as I am a smart guy, I decided to solve all of these problems. (Also because some other board user asked me for the code.) All you need is Mozilla Firefox and the latest Greasemonkey extension.
Then copy this code into some text file and install it as a user script (name it netez.user.js or smth - the .user.js part is important! - and drag&drop it into the Firefox window to do this):
Very, very "quick and dirty", but I thought it would be a good idea if you actually knew what I'm doing here, so ...
I hope you'll like it.
Barely ugly.
Why is it in our world of SXGA screens that some weirdo says "hey, let's make the page extra-narrow and put some large bars on its top"? OK, 650 pixels are a fine size, but why not make it 100% which is - on very. very bad resolutions - also 650 pixels, most likely more?
What's with the weather bar on top of this board? And why do we need the (%/§)& date as an extra line?
And as I am a smart guy, I decided to solve all of these problems. (Also because some other board user asked me for the code.) All you need is Mozilla Firefox and the latest Greasemonkey extension.
Then copy this code into some text file and install it as a user script (name it netez.user.js or smth - the .user.js part is important! - and drag&drop it into the Firefox window to do this):
Code: Select all
// ==UserScript==
// @name enlarge netez.com board
// @description does what its description says
// @include http://forum.zabkat.com/*
// @include http://forum.zabkat.com/*
// ==/UserScript==
function XPath(Params) { return document.evaluate(Params, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); }
var checkRegex = /topicreview/;
var checkFid = checkRegex.exec(window.location);
if (checkFid) {
// don't do it in the review frame!
}
else {
// make that 650px table wider first, don't forget that we also should enlarge the post fields
if (XPath("//table[@width='650']").snapshotLength>0) {
XPath("//table[@width='650']").snapshotItem(0).style.width="100%";
// and while we're at it:
if (XPath("//textarea").snapshotLength>0) {
XPath("//textarea").snapshotItem(0).style.border="1px solid black";
XPath("//textarea").snapshotItem(0).style.width="150%"; // yay...
XPath("//textarea").snapshotItem(0).style.height="300px";
XPath("//textarea").snapshotItem(0).style.fontFamily="Consolas,Verdana,Arial,Helvetica,sans-serif"; // looks way better :)
XPath("//textarea").snapshotItem(0).style.fontSize="12px"; // now that there is more space...
}
}
// we know the current date, we don't visit the board to learn about it
XPath("//table").snapshotItem(0).style.display="none";
// we also know that we're on netez.com, so ...
XPath("//table").snapshotItem(2).style.display="none";
// the Google logo is ugly as hell
XPath("//img[@width='97']").snapshotItem(0).style.display="none";
// haha, you really think someone is actually using the search thingy for WWW?!
for (i = 0; i < XPath("//input[@name='sitesearch']").snapshotLength; i++)
XPath("//input[@name='sitesearch']").snapshotItem(i).style.display="none";
XPath("//input[@name='btnG']").snapshotItem(0).value="search netez.com";
// also remove the radio buttons' text fields
for (i = 0; i < XPath("//font").snapshotLength; i++)
XPath("//font").snapshotItem(i).style.display="none";
// "copyright", yadda yadda, phpBB, alright, so what?
for (i = 0; i < XPath("//span[@class='copyright']").snapshotLength; i++)
XPath("//span[@class='copyright']").snapshotItem(i).style.display="none";
} // end checkFid
I hope you'll like it.