Skip to content

Commit e6b4dd4

Browse files
committed
修复 知乎首页变动导致宽屏显示功能依然显示部分边栏的问题
1 parent 545f1c1 commit e6b4dd4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Zhihu-Beautification.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 知乎美化
3-
// @version 1.5.18
3+
// @version 1.5.19
44
// @author X.I.U
55
// @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、屏蔽首页活动广告、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏
66
// @match *://www.zhihu.com/*
@@ -212,7 +212,7 @@ html[data-theme=light] .AppHeader-notifications:not([aria-label=通知])>div:fir
212212
`,
213213
style_widescreenDisplayIndex = `/* 宽屏显示 - 首页 */
214214
.Topstory-mainColumn, .QuestionWaiting-mainColumn {width: inherit !important;}
215-
.Topstory-mainColumn+div,[data-za-detail-view-path-module="RightSideBar"] {display: none !important;}
215+
.Topstory-mainColumn~div,[data-za-detail-view-path-module="RightSideBar"] {display: none !important;}
216216
.Topstory-container {width: ${GM_getValue('menu_widescreenDisplayWidth')}px;}
217217
@media only screen and (max-width: ${Number(GM_getValue('menu_widescreenDisplayWidth'))+50}px) {.Topstory-container {width: 97% !important;}}
218218
`,

0 commit comments

Comments
 (0)