Skip to content

Commit 67f9fdd

Browse files
committed
优化 宽屏显示
1 parent 178436c commit 67f9fdd

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Zhihu-Beautification.user.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 知乎美化
3-
// @version 1.5.22
3+
// @version 1.5.23
44
// @author X.I.U
55
// @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、屏蔽首页活动广告、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏
66
// @match *://www.zhihu.com/*
@@ -28,9 +28,9 @@
2828
['menu_widescreenDisplay', '宽屏显示', '勾选 = 该页面开启宽屏显示(刷新后查看效果)', ''],
2929
['menu_widescreenDisplayIndex', '首页', '宽屏显示', true],
3030
['menu_widescreenDisplayQuestion', '问题页', '宽屏显示', true],
31-
['menu_widescreenDisplaySearch', '搜索页、话题页、圈子', '宽屏显示', true],
31+
['menu_widescreenDisplaySearch', '搜索页、话题页', '宽屏显示', true],
3232
['menu_widescreenDisplayCollection', '收藏页', '宽屏显示', true],
33-
['menu_widescreenDisplayPost', '文章页', '宽屏显示', false],
33+
['menu_widescreenDisplayPost', '文章页(暂不可用)', '宽屏显示', false],
3434
['menu_widescreenDisplayPeople', '用户主页', '用户主页', false],
3535
['menu_widescreenDisplayWidth', '宽屏宽度', '宽屏宽度 (默认 1000)', '1000'],
3636
['menu_darkMode', '暗黑模式', '暗黑模式', true],
@@ -231,10 +231,10 @@ html[data-theme=light] .AppHeader-notifications:not([aria-label=通知])>div:fir
231231
.AuthorInfo {max-width: 100% !important;}
232232
`,
233233
style_widescreenDisplaySearch = `/* 宽屏显示 - 搜索页 */
234-
.SearchMain, .ContentLayout-mainColumn, .Club-mainColumn, .Post-mainColumn, [data-za-detail-view-path-module=TopicItem]>div:first-child {width: inherit !important;}
235-
.SearchMain+div, .ContentLayout-sideColumn, .Card.QuestionHeaderTopicMeta, .ClubSideBar, [data-za-detail-view-path-module=TopicItem]>div:not(:first-child) {display: none !important;}
236-
.Search-container, .ContentLayout, .Club-container, .Post-container, [data-za-detail-view-path-module=TopicItem] {width: ${GM_getValue('menu_widescreenDisplayWidth')}px;}
237-
@media only screen and (max-width: ${Number(GM_getValue('menu_widescreenDisplayWidth'))+50}px) {.Search-container, .ContentLayout, .Club-container, .Post-container, [data-za-detail-view-path-module=TopicItem] {width: 97.5% !important;}}
234+
.SearchMain, .App-main>[data-za-detail-view-path-module=TopicItem]>div:first-child {width: inherit !important;}
235+
.SearchMain+div, .App-main>[data-za-detail-view-path-module=TopicItem]>div:not(:first-child) {display: none !important;}
236+
.Search-container, .App-main>[data-za-detail-view-path-module=TopicItem] {width: ${GM_getValue('menu_widescreenDisplayWidth')}px;}
237+
@media only screen and (max-width: ${Number(GM_getValue('menu_widescreenDisplayWidth'))+50}px) {.Search-container, .App-main>[data-za-detail-view-path-module=TopicItem] {width: 97.5% !important;}}
238238
`,
239239
style_widescreenDisplayCollection = `/* 宽屏显示 - 收藏页 */
240240
.CollectionsDetailPage-mainColumn {width: inherit !important;}

0 commit comments

Comments
 (0)