mirror of
https://github.com/XIU2/UserScript.git
synced 2026-07-09 10:55:22 +00:00
修复 知乎首页变动导致宽屏显示功能依然显示部分边栏的问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 知乎美化
|
||||
// @version 1.5.18
|
||||
// @version 1.5.19
|
||||
// @author X.I.U
|
||||
// @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、屏蔽首页活动广告、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏
|
||||
// @match *://www.zhihu.com/*
|
||||
@@ -212,7 +212,7 @@ html[data-theme=light] .AppHeader-notifications:not([aria-label=通知])>div:fir
|
||||
`,
|
||||
style_widescreenDisplayIndex = `/* 宽屏显示 - 首页 */
|
||||
.Topstory-mainColumn, .QuestionWaiting-mainColumn {width: inherit !important;}
|
||||
.Topstory-mainColumn+div,[data-za-detail-view-path-module="RightSideBar"] {display: none !important;}
|
||||
.Topstory-mainColumn~div,[data-za-detail-view-path-module="RightSideBar"] {display: none !important;}
|
||||
.Topstory-container {width: ${GM_getValue('menu_widescreenDisplayWidth')}px;}
|
||||
@media only screen and (max-width: ${Number(GM_getValue('menu_widescreenDisplayWidth'))+50}px) {.Topstory-container {width: 97% !important;}}
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user