It's some weeks now that I'm slowly reconstructing my old customized environment on the new PC, reinstalling and configuring latest versions of all the software I were used to.
Sadly some old firefox extensions are no longer supported by authors and didn't get updated for the latest 3.x versions. So I lost a useful extension which allowed me to automatically resetting the white-background, so widely used in webpages, into a nicer grey background.
I really don't know why, but people don't understend that the white background in a sheet of paper does reflect light, while white background in a web page do MAKES light and then it also has a different luminosity. And that as time goes by keep reading black on white is a big effort for the eyes, and with a book this doesn't happens.
After the Nth white page and after so much swearing against all the silly webmaster of the world, I decided to search for something to replace the missing Firefox extension...
I searched in the web for something like a bookmarklet and I ended up finding one which applied a grey color to the BODY tag of the page. It seemed to be good, but it was useless with frames and pages with text in sub-boxes with a background set to white which overlaps the grey background of the BODY tag.. Then I've been forced to search for something else.
Finally I found a bookmarklet which applied a black background to ANYTHING and changed ALL the text to white. Perfect. It was just a question of changing the colors according to my requirements and it was ready. There where only a thing which was still wrong: it changed also link colors and so they were no longer recognizable between normal text!
Sadly I never get used to javascript. It's a programming language that I know at a level between almostNothing and nothing. It creates me troubles with its lack of discrimination between objects, properties (and other stuff). They all go in a sequence devided only by a dot, but I always forgot which one is of the 1st kind and which one is of the second kind. And it's also case-sensitive: commands needs to be written with correct case or it all fails.
One day I'll probably learn it, but at the present time it's too complex for my taste.
Anyway, I worked on it for around an hour and I finally managed to fix it. : )
Now I placed it on the firefox toolbar as button and anytime I open a white page, I just need to click the button and.. TAK! The webpage background change into a relaxing silver, and the links are still clearly visible! : D
My sight says thanks. :P
If you want to use it too, here is the codeline:
javascript:(function(){var%20b=document.getElementsByTagName('*');for(var%20i=0;i<b.length;i++){b[i].style.backgroundImage='none';b[i].style.backgroundColor='#d8d8db';if(b[i].tagName!='A'){b[i].style.color='#000000'}}})()
------------------------------
(2.32 thursday 28th, may 2009)
note: I fixed the codeline adding "()" at its end. Someone told me it may fails in some browsers otherwise.
y.