NERD! Homepage

A bookmarklet for my wife

Just a few minutes ago my wife complained about websites with white text on a black background. For her I made this simple grey-on-white bookmarklet which sets all backgrounds to #f5f5f5 and all colors to #666. The background of the body is set to #ebebeb to preserve some of the shapes of the original site (the real reason is I wanted to use #f5f5f5, a key I used a lot when I had a windows PC and #ebebeb, the initials of a good friend).

Here’s the code. As always, suggestions are welcome.
javascript:(function(){
var%20a=document.getElementsByTagName('*');
l=a.length;
while(l--){ a[l].style.color='#666';a[l].style.background='#f5f5f5';}
document.getElementsByTagName('body')[0].style.background='#ebebeb';
})();

Marcel Korpel | | #

Hmm, you know that #666 is the Number of the Beast? ;-)

Vasilis | | #

I like #666 as a color, I’m not superstitious so I’m not afraid of it (-: But if you have a better suggestion for a font color do tell me.

Marcel Korpel | | #

As Vincent Flanders tells on the page I linked, #000 text on a white background gives better readability than gray text on a white background (I changed your bookmarklet that way).

But if your wife is fine with it, I won’t complain, of course.

Marcel Korpel | | #

By the way, can you tell me why I get these SpamKarma-captcha’s as ‘a second chance’ to prove that I’m not a spam robot? Even if I don’t include links in my comments? Is my IP blacklisted?

Vasilis | | #

Thanks for the feedback. I prefer gray on white so I’ll leave it up to the user to change the colors.

I’m not sure why the spamkarma captcha’s appear. I’ll try another plugin soon.