From 746b5514da2c46058a719aee22223ebbf2f72c36 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 27 Jan 2022 15:07:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=A8=A1=E5=BC=8F3=20?= =?UTF-8?q?=E6=8E=92=E9=99=A4=20svg=20=E5=85=83=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DarkMode.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DarkMode.user.js b/DarkMode.user.js index d9beb11..81f1022 100644 --- a/DarkMode.user.js +++ b/DarkMode.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 护眼模式 -// @version 1.3.7 +// @version 1.3.8 // @author X.I.U // @description 简单有效的全网通用护眼模式(夜间模式、暗黑模式、深色模式) // @match *://*/* @@ -335,8 +335,8 @@ style_21_firefox = `html {filter: brightness(${style_20[0]}%) sepia(${style_20[1]}%) !important; background-image: url();}`, style_22 = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important;}`, style_22_firefox = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important; background-image: url();}`, - style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"] {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;} html {text-shadow: 0 0 0 !important;}`, - style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} img, video, [style*="background"][style*="url"] {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;} html {text-shadow: 0 0 0 !important;}`; + style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"], svg {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;} html {text-shadow: 0 0 0 !important;}`, + style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} img, video, [style*="background"][style*="url"], svg {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;} html {text-shadow: 0 0 0 !important;}`; // Firefox 浏览器需要特殊对待 if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {