From d25c15bb4a84817177bd634cf8f55e3947b190bd Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sat, 21 Aug 2021 09:06:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=EF=BC=88=E5=BC=80=E5=85=B3=E6=9A=97=E9=BB=91=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=97=B6=E6=AD=A3=E7=A1=AE=E5=88=B7=E6=96=B0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Beautification.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Zhihu-Beautification.user.js b/Zhihu-Beautification.user.js index 3ab3542..6496584 100644 --- a/Zhihu-Beautification.user.js +++ b/Zhihu-Beautification.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 知乎美化 -// @version 1.3.4 +// @version 1.3.5 // @author X.I.U // @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏、文章编辑页面与实际文章宽度一致、屏蔽登录提示 // @match *://www.zhihu.com/* @@ -451,12 +451,12 @@ html {filter: brightness(75%) sepia(30%) !important; background-image: url();} case 'light': document.cookie='theme=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/'; document.lastChild.setAttribute('data-theme', 'light'); - if (menu_value('menu_darkMode')) location.reload(); // 刷新网页 + location.reload(); // 刷新网页 break; case 'dark': document.cookie='theme=dark; expires=Thu, 18 Dec 2031 12:00:00 GMT; path=/'; document.lastChild.setAttribute('data-theme', 'dark'); - if (menu_value('menu_darkMode')) location.reload(); // 刷新网页 + if (GM_getValue('menu_darkMode')) location.reload(); // 刷新网页 break; } }