Skip to content

Commit b23cc32

Browse files
committed
优化 知乎部分网页没有暗黑模式的问题
1 parent 948ea2c commit b23cc32

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Zhihu-Beautification.user.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 知乎美化
3-
// @version 1.4.6
3+
// @version 1.4.7
44
// @author X.I.U
55
// @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、屏蔽首页活动广告、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏
66
// @match *://www.zhihu.com/*
@@ -433,6 +433,7 @@ html {filter: brightness(65%) sepia(30%) !important; background-image: url();}
433433
}
434434

435435
if (location.pathname === '/' || location.pathname === '/hot' || location.pathname === '/follow') style += style_index;
436+
if (menu_value('menu_darkModeType') === 1 && location.pathname.indexOf('/special/') > -1) style += style_darkMode_2 + 'video {filter: invert(1) !important;}';
436437

437438
// 宽屏显示
438439
if (menu_value('menu_widescreenDisplayIndex')) style += style_widescreenDisplayIndex;

0 commit comments

Comments
 (0)