defBackgroundUp

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.

目前为 2017-04-04 提交的版本。查看 最新版本

// ==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://gf.qytechs.cn/en/users/3561-lucianolll
// @namespace     https://openuserjs.org/users/lucianolll
// @version     19
// ==/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);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址