NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name defBackgroundUp
// @description Replace background with ergonomic colors in #EDF2EB rgb(237, 242, 235) or #ECF2EA rgb(236, 242, 234); solve #FFFFFF rgb(255, 255, 255) stress; natural and ergonomic background colors to view; Reduce eye strain. Color #EDF2EB is combination neutral and natural tonality color.
// @include *
// grant none
// @namespace https://greasyfork.org/en/users/3561-lucianolll
// @namespace https://openuserjs.org/users/lucianolll
// @copyright 2015, lucianolll (https://openuserjs.org/users/lucianolll)
// @version 22
// @author lucianolll
// @licence MIT; https://opensource.org/licenses/MIT
// ==/UserScript==
const genfc={
confBackg(){
const doc=document,gtb=(ds)=>{if(getComputedStyle(ds,null).backgroundColor==='rgb(255, 255, 255)'){return true;} return false;},tmp=[];
['body','table','td','div','html','dl','ul','pre'].map(ta=>tmp.push(...Array.from(doc.getElementsByTagName(ta)).filter(gtb)));
tmp.map(s=>s.style.backgroundColor='#edf2eb');
},
};
addEventListener('load',genfc.confBackg(),false);