GM_script icon indicating copy to clipboard operation
GM_script copied to clipboard

26.05版本,配合谷歌扩展DarkReader后,出现颜色混乱的情况,如下图

Open MoConWu opened this issue 1 year ago • 5 comments

image

MoConWu avatar Jun 13 '23 02:06 MoConWu

之前没有出现过这个情况,重置AC脚本也不行

MoConWu avatar Jun 13 '23 02:06 MoConWu

我的谷歌搜索加dark reader也是,暂时没找到其他办法,等待作者改进。

yaomin-yang avatar Jun 13 '23 04:06 yaomin-yang

DarkReader 有自己的一套黑化逻辑。可以在google上禁用它,尝试在自定义css中加入下列样式。(配合谷歌自带的暗色主题使用)

body[google] {

  &:before {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
  }
  
  #rso .g, .sfbg, .f6F9Be, .k8XOCe .srg, #rso, div[two-father], #rso>div:not(.g), #kp-wp-tab-overview{
    background-color: rgba(32,33,36, 1) !important; 
  }
  
  .sfbg{
    margin-top: -10px;
  }
  
  .yg51vc {
    background-color: transparent !important; 
  }
}

alephpi avatar Jun 15 '23 20:06 alephpi

DarkReader 有自己的一套黑化逻辑。可以在google上禁用它,尝试在自定义css中加入下列样式。(配合谷歌自带的暗色主题使用)

body[google] {

  &:before {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
  }
  
  #rso .g, .sfbg, .f6F9Be, .k8XOCe .srg, #rso, div[two-father], #rso>div:not(.g), #kp-wp-tab-overview{
    background-color: rgba(32,33,36, 1) !important; 
  }
  
  .sfbg{
    margin-top: -10px;
  }
  
  .yg51vc {
    background-color: transparent !important; 
  }
}

这是一个办法,但并不是最棒的去解决办法。而且之前都没有这个问题,大多数网站也都可以动态适应darkreader

MoConWu avatar Jul 14 '23 18:07 MoConWu

DarkReader 有自己的一套黑化逻辑。可以在google上禁用它,尝试在自定义css中加入下列样式。(配合谷歌自带的暗色主题使用)

body[google] {

  &:before {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: '';
  }
  
  #rso .g, .sfbg, .f6F9Be, .k8XOCe .srg, #rso, div[two-father], #rso>div:not(.g), #kp-wp-tab-overview{
    background-color: rgba(32,33,36, 1) !important; 
  }
  
  .sfbg{
    margin-top: -10px;
  }
  
  .yg51vc {
    background-color: transparent !important; 
  }
}

这是一个办法,但并不是最棒的去解决办法。而且之前都没有这个问题,大多数网站也都可以动态适应darkreader

这只是个脚本,不是网站。脚本之间冲突很难让谁去迁就谁。

alephpi avatar Jul 14 '23 19:07 alephpi