defBackgroundUp

Replace #FFFFFF backgrounds in #ECF2EA rgb(236, 242, 234),is more natural ergonomic color for your eyes.

目前為 2015-04-27 提交的版本,檢視 最新版本

/*<![CDATA[*//*
// ==UserScript==
// @name          defBackgroundUp
// @description   Replace #FFFFFF backgrounds in #ECF2EA rgb(236, 242, 234),is more natural ergonomic color for your eyes.
// @include       *
// @namespace     https://gf.qytechs.cn
// @version     6
// ==/UserScript==**/
function confBackg(){
	var doc=document,getref=['body','table','td','div','html','dl','ul','pre'],
abg=function(tg){return getComputedStyle(tg,null).backgroundColor=='rgb(255, 255, 255)';};
   for(var a=8,n=0,tag,tg,tmp=[];a--;){
	tag=doc.getElementsByTagName(getref[a]);
   for(var i=tag.length;i--;){tg=tag[i];if(abg(tg)){tmp[n++]=tg.style;}}
   };tmp.forEach(function(s){s.backgroundColor='#ecf2ea';});tmp=null;
 }
   document.addEventListener('load',confBackg(),false);

/*]]>*/

QingJ © 2025

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