From abcf984e9d2ef086e6ccb6eb0ef6d951b7a94531 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 1 Apr 2021 16:16:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=B9=BF=E5=91=8A=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Beautification.user.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Zhihu-Beautification.user.js b/Zhihu-Beautification.user.js index e15dcad..93cd9c9 100644 --- a/Zhihu-Beautification.user.js +++ b/Zhihu-Beautification.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 知乎美化 -// @version 1.1.1 +// @version 1.1.2 // @author X.I.U // @description 宽屏显示、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏、文章编辑页面与实际文章宽度一致、屏蔽登录提示 // @match *://www.zhihu.com/* @@ -69,7 +69,13 @@ // 添加样式 function addStyle() { let style = `/* 屏蔽登录提示 */ -.Question-mainColumnLogin {display: none;} +.Question-mainColumnLogin {display: none !important;} +/* 屏蔽首页广告 */ +.TopstoryItem--advertCard {display: none !important;} +/* 屏蔽回答页广告 */ +.Pc-card.Card {display: none !important;} +/* 屏蔽文章页推荐文章 */ +.Recommendations-Main {display: none !important;} `, style_1 = `/* 宽屏显示 */ .GlobalSideBar,.Question-sideColumn,.ContentLayout-sideColumn,.SearchSideBar,.Card.QuestionHeaderTopicMeta {