// ==UserScript== // @name defBackgroundUp // @description Replace #FFFFFF backgrounds in #EDF2EB rgb(237, 242, 235) or #ECF2EA rgb(236, 242, 234),is more natural ergonomic color for your eyes, natural contrast. // @include * // grant none // @namespace https://greasyfork.org/en/users/3561-lucianolll // @namespace https://openuserjs.org/users/lucianolll // @version 19 // @downloadURL none // ==/UserScript== const genfc={ confBackg(){ const doc=document,getref=['body','table','td','div','html','dl','ul','pre'],abg=tg=>{const tgs=(tg)=>getComputedStyle(tg,null).backgroundColor==='rgb(255, 255, 255)';return tg=>tgs(tg);}; const tmp=[]; for(const ta of getref){ const tag=doc.getElementsByTagName(ta),at=abg(tag); for(const it of tag){if(at(it)){tmp.push(it.style);}} } for(const s of tmp){s.backgroundColor='#edf2eb'} }, }; addEventListener('load',genfc.confBackg,false); addEventListener('load',genfc.confBackg(),false);