File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name 知乎美化
3- // @version 1.5.0
3+ // @version 1.5.1
44// @author X.I.U
55// @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、屏蔽首页活动广告、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏
66// @match *://www.zhihu.com/*
@@ -435,7 +435,7 @@ html {filter: brightness(65%) sepia(30%) !important; background-image: url();}
435435 }
436436
437437 if ( location . pathname === '/' || location . pathname === '/hot' || location . pathname === '/follow' ) style += style_index ;
438- if ( menu_value ( 'menu_darkModeType' ) === 1 && ( location . pathname . indexOf ( '/special/' ) > - 1 || location . pathname . indexOf ( '/pub/' ) > - 1 ) ) style += style_darkMode_2 + 'video {filter: invert(1) !important;}' ;
438+ if ( menu_value ( 'menu_darkMode' ) && menu_value ( ' menu_darkModeType') === 1 && ( location . pathname . indexOf ( '/special/' ) > - 1 || location . pathname . indexOf ( '/pub/' ) > - 1 ) ) style += style_darkMode_2 + 'video {filter: invert(1) !important;}' ;
439439
440440 // 宽屏显示
441441 if ( menu_value ( 'menu_widescreenDisplayIndex' ) ) style += style_widescreenDisplayIndex ;
You can’t perform that action at this time.
0 commit comments