lucianolll / defBackgroundUpds

// ==UserScript==
// @name          defBackgroundUpds
// @description   Replace background with ergonomic colors #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     3.6
// @author     lucianolll
// @licence    MIT
// @updateURL     https://openuserjs.org/meta/lucianolll/defBackgroundUpds.meta.js
// @downloadURL   https://openuserjs.org/install/lucianolll/defBackgroundUpds.user.js
// ==/UserScript==
/* jshint esversion: 6 */
const confBackg=()=>{
    const doc=document,gtb=(ds)=> getComputedStyle(ds).backgroundColor.includes('255, 255, 255') && ds.style || [],stl=(s)=>(s.backgroundColor='#edf2eb');
    [doc.body,doc.documentElement].map(ds=> getComputedStyle(ds).backgroundColor.includes('255, 255, 255') && (ds.style.backgroundColor='#edf2eb'));
    const bdt=['table','td','div','dl','ul','pre'].map(s=>doc.getElementsByTagName(s)).flatMap(ta=> Array.from(ta).flatMap(gtb));
    bdt.map(stl);
};
   addEventListener('load',confBackg(),false);