Skip to content

Commit 378a684

Browse files
committed
优化 暗黑模式1+屏蔽首页活动广告(右上角通知/私信红点颜色)
1 parent de54cca commit 378a684

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Zhihu-Beautification.user.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 知乎美化
3-
// @version 1.5.10
3+
// @version 1.5.11
44
// @author X.I.U
55
// @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、屏蔽首页活动广告、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏
66
// @match *://www.zhihu.com/*
@@ -197,6 +197,9 @@ html[data-theme="light"] .Input-wrapper.Input-wrapper--grey {background: #f6f6f6
197197
html[data-theme="light"] .SearchBar input {color: #121212 !important;}
198198
html[data-theme="light"] .SearchBar input::placeholder, html[data-theme="light"] .SearchBar input::-webkit-input-placeholder, html[data-theme="light"] {color: #919baf !important;}
199199
html[data-theme="light"] .Button--primary.Button--blue {color: #fff !important;background-color: #06f !important;}
200+
/* 右上角 通知/私信 红点颜色 */
201+
html[data-theme=light] .AppHeader-notifications:not([aria-label=通知])>div:first-of-type, html[data-theme=light] .AppHeader-messages:not([aria-label=私信])>div:first-of-type {color: #ffffff !important;border: 2px solid #ffffff !important;}
202+
200203
`,
201204
style_widescreenDisplayIndex = `/* 宽屏显示 - 首页 */
202205
.Topstory-mainColumn, .QuestionWaiting-mainColumn {width: inherit !important;}
@@ -239,6 +242,8 @@ header.is-hidden {display: none;}
239242
.ztext .content_image, .ztext .origin_image, .GifPlayer img {max-height: 500px !important;width: auto !important;}
240243
`,
241244
style_darkMode_1 = `/* 暗黑模式(方案 1) */
245+
/* 右上角 通知/私信 红点颜色 */
246+
html[data-theme=dark] .AppHeader-notifications:not([aria-label=通知])>div:first-of-type, html[data-theme=dark] .AppHeader-messages:not([aria-label=私信])>div:first-of-type {color: #ffffff !important;border: 2px solid #2d333b !important;}
242247
/* 文字颜色 */
243248
html[data-theme=dark] body, html[data-theme=dark] .ContentItem-title, html[data-theme=dark] .QuestionHeader-title, html[data-theme=dark] .Tabs-link, html[data-theme=dark] .CreatorEntrance-title, html[data-theme=dark] .Search-container, html[data-theme=dark] .HotItem-excerpt, html[data-theme=dark] .PushNotifications-item, html[data-theme=dark] .Notifications-Main>header h1, html[data-theme=dark] .Notifications-Section-header h2, html[data-theme=dark] .NotificationList-Item-content, html[data-theme=dark] .Reward, html[data-theme=dark] .ChatSideBar-Search-Input input, html[data-theme=dark] input.Input, html[data-theme=dark] .LinkCard-title, html[data-theme=dark] .MCNLinkCard-title, html[data-theme=dark] .ZVideoLinkCard-title, html[data-theme=dark] .TipjarDialog-customButton, html[data-theme=dark] .Question-mainColumn .Card:not(.AnswersNavWrapper) a[data-za-detail-view-id] > div:last-child, html[data-theme=dark] .TextArea {color: #adbac7 !important;}
244249
html[data-theme=dark] .LinkCard-meta, html[data-theme=dark] .MCNLinkCard-source {color: #5a6f83 !important;}

0 commit comments

Comments
 (0)