From fb258530c7aa0f07a839bbe9a118b09a5485b178 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 27 Jul 2021 08:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E6=9A=97=E9=BB=91?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=201]=20=E6=94=AF=E6=8C=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=A1=B5=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Beautification.user.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Zhihu-Beautification.user.js b/Zhihu-Beautification.user.js index d44b2fb..0322d33 100644 --- a/Zhihu-Beautification.user.js +++ b/Zhihu-Beautification.user.js @@ -269,8 +269,8 @@ html[data-theme=dark] .CommentItemV2--highlighted {-webkit-animation: nano !impo /* 赞赏 */ html[data-theme=dark] .Reward-TipjarDialog-amountList .Button--red, html[data-theme=dark] .Reward-TipjarDialog-amountList .Button--red, html[data-theme=dark] .Reward-TipjarDialog-amountInput .SimpleInput {color: #d3d3d3 !important; background-color: #353b44 !important; border: none !important;} - -/* 问题日志页 */ +`, + style_darkMode_1_x = `/* 问题日志页 */ html[data-theme=dark] .zu-top {background: #2D333B !important;border: none !important;} html[data-theme=dark] .zm-tag-editor-labels.zg-clear a {background: rgba(51,119,255,.1) !important;} html[data-theme=dark] .zu-main {background: #2D333B !important;padding-left: 20px;padding-right: 20px;} @@ -279,7 +279,7 @@ html[data-theme=dark] a {color: #D4E5F4 !important;} html[data-theme=dark] ins, html[data-theme=dark] ins a {color: #009688 !important;} html[data-theme=dark] del a {color: #E91E63 !important;} html[data-theme=dark] div#zh-hovercard a {color: #353535 !important;} -`, + `, style_darkMode_2 = `/* 暗黑模式(方案 2) */ html {filter: invert(80%) !important;} img, .ZVideoItem-video, .ZVideo-video {filter: invert(1) !important;} @@ -315,7 +315,8 @@ html {filter: brightness(75%) sepia(30%) !important; background-image: url();} location.reload(); // 刷新网页 } if (location.pathname.indexOf('/log') > -1) { - document.documentElement.setAttribute('data-theme', 'dark') + document.documentElement.setAttribute('data-theme', 'dark'); + style_darkMode_1 += style_darkMode_1_x; } } else { if (getTheme() === 'dark') {