zyberboy
dá ûnrêäl Kiñg
This tutorial is for those who dont like white and other high contrast light colors as backgrounds on webpages.
White color causes eye stain and also monitor consumes more power when displaying light colors.Even if you does't feel anything your eyes and brain are working more.
This is done in Firefox with "GraseMonkey"addon & greasemonkey script
1. First install GreaseMonkey from here and restart FireFox
*addons.mozilla.org/en-US/firefox/addon/748
2. Then install this script from
*userscripts.org/scripts/show/6205
The default color change in this script is from white to light grey,You can choose your required color by editing the script(for eg to black).
For this once it is installed , go to Tools>GreaseMonkey>ManageUserScript,now you can see your installed script on the left that is "FFFFFF to EBEBEB" select this and click edit,for the first time it will ask for text editor,select your text editor.
Now in the last line of the script you can see the color in hex code
everything.style.backgroundColor = "#EBEBEB"; <------ this one #EBEBEB it is light gray
You can change this to black or anything you want by replacing #EBEBEB with hex code of other colores, changing to #000000 will result in black colored google.
Refer here for other colors hex code in this chart *www.dave-stephens.com/computers/colors.htm
If you also want to change the font color you will need to add extra code to do this.
Add this code given below after the earlier line that is everything.style.backgroundColor = "#000000";
var font_tags=document.getElementsByTagName("font");
for(var i=0; i<font_tags.length; i++) {
font_tags.color = "#AAAAAA";
}
save and exit your editor,now google will appear as black with font color as gray if your code is correct.
White font on black background may be uncomfortable so use gray font.
black = "#000000"
gray = "#AAAAAA"
or use gray as background ("#AAAAAA") with default font color,which i think is easy on eyes than black page.
The advantage of this java script is that it will change white colored background of all webpages,and also preserve webpages with comfortable colors as it is .You can add more webpages to this script, eg thinkdigit.forum for this u will need to duplicate "else if" statement as given below with rgb color like this.These values 238, 240, 242 & 245, 247, 249 is were script looks for white colored pages,this value is that of thinkdigit.forum which is not pure white.You can pick color of webpages in rgb by using colorzilla addon for firefox .
Add this code after the first "if clause".
else if(
bgcolor == "rgb(238, 240, 242)" ||
bgcolor == "rgb(245, 247, 249)"
)
{
everything.style.backgroundColor = "#AAAAAA";
If you only need to change color of only one particular webpage you can use another excellent firefox addon called Platypus *addons.mozilla.org/en-US/firefox/addon/737
which will allow u to customize a webpage in any way you want and will allow these changes to save as a GreaseMonkey script.
Note: This java script will not change backgrounds of some CSS styles webpages and also white images in the page.
White color causes eye stain and also monitor consumes more power when displaying light colors.Even if you does't feel anything your eyes and brain are working more.
This is done in Firefox with "GraseMonkey"addon & greasemonkey script
1. First install GreaseMonkey from here and restart FireFox
*addons.mozilla.org/en-US/firefox/addon/748
2. Then install this script from
*userscripts.org/scripts/show/6205
The default color change in this script is from white to light grey,You can choose your required color by editing the script(for eg to black).
For this once it is installed , go to Tools>GreaseMonkey>ManageUserScript,now you can see your installed script on the left that is "FFFFFF to EBEBEB" select this and click edit,for the first time it will ask for text editor,select your text editor.
Now in the last line of the script you can see the color in hex code
everything.style.backgroundColor = "#EBEBEB"; <------ this one #EBEBEB it is light gray
You can change this to black or anything you want by replacing #EBEBEB with hex code of other colores, changing to #000000 will result in black colored google.
Refer here for other colors hex code in this chart *www.dave-stephens.com/computers/colors.htm
If you also want to change the font color you will need to add extra code to do this.
Add this code given below after the earlier line that is everything.style.backgroundColor = "#000000";
var font_tags=document.getElementsByTagName("font");
for(var i=0; i<font_tags.length; i++) {
font_tags.color = "#AAAAAA";
}
save and exit your editor,now google will appear as black with font color as gray if your code is correct.
White font on black background may be uncomfortable so use gray font.
black = "#000000"
gray = "#AAAAAA"
or use gray as background ("#AAAAAA") with default font color,which i think is easy on eyes than black page.
The advantage of this java script is that it will change white colored background of all webpages,and also preserve webpages with comfortable colors as it is .You can add more webpages to this script, eg thinkdigit.forum for this u will need to duplicate "else if" statement as given below with rgb color like this.These values 238, 240, 242 & 245, 247, 249 is were script looks for white colored pages,this value is that of thinkdigit.forum which is not pure white.You can pick color of webpages in rgb by using colorzilla addon for firefox .
Add this code after the first "if clause".
else if(
bgcolor == "rgb(238, 240, 242)" ||
bgcolor == "rgb(245, 247, 249)"
)
{
everything.style.backgroundColor = "#AAAAAA";
If you only need to change color of only one particular webpage you can use another excellent firefox addon called Platypus *addons.mozilla.org/en-US/firefox/addon/737
which will allow u to customize a webpage in any way you want and will allow these changes to save as a GreaseMonkey script.
Note: This java script will not change backgrounds of some CSS styles webpages and also white images in the page.