simplify zhihu better

A cleaner Zhihu reading script based on “simplify zhihu”: hides headers, sidebars, login popups and centers the article content for better reading.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         simplify zhihu better
// @version      1.0
// @description         A cleaner Zhihu reading script based on “simplify zhihu”: hides headers, sidebars, login popups and centers the article content for better reading.
// @description:zh-CN   增强版知乎简化脚本,隐藏顶部栏、右侧作者卡片及干扰元素,并将专栏正文居中显示,提供更专注的阅读体验。
// @description:zh-CN   参考:[simplify zhihu](https://greasyfork.org/scripts/38774)
// @author       ztxdcyy@github
// @match        https://www.zhihu.com/question/*
// @match        https://www.zhihu.com/people/*
// @match        https://www.zhihu.com/topic/*
// @match        https://www.zhihu.com/search?*
// @match        https://zhuanlan.zhihu.com/*
// @match        https://www.zhihu.com/follow
// @match        https://zhuanlan.zhihu.com/p/*
// @license MIT 
// @grant        GM_log
// @grant        GM_addStyle
// @namespace https://greasyfork.org/users/1536646
// ==/UserScript==

(function() {
    GM_addStyle (`
.CommentEditor-input { display: none !important; }
.CommentEditor-singleButton { display: none !important; }

.Sticky.is-fixed { position: relative !important; }
.Sticky--holder { display: none !important; }

.Modal-backdrop{background-color: transparent;}
.signFlowModal{display:none !important;}

.Question-sideColumn--sticky { position: relative !important; }
.AppHeader { display: none !important; }
.GlobalSideBar { display: none !important; }
.Question-sideColumn { display: none !important; }
.AdblockBanner { display: none !important; }
.Post-SideActions { display: none !important; }
.Post-SideBar { display: none !important; }
.Post-SideBarSticky { display: none !important; }
.Post-Row-Content-right { display: none !important; }
.Card.AuthorCard { display: none !important; }
.Post-content { display: flex !important; justify-content: center !important; }
.Post-Row-Content { justify-content: center !important; }
.Post-Row-Content-left { padding-right: 0 !important; }
.Post-Row-Content-left-article { margin: 0 auto !important; }
.Post-Main.Post-NormalMain { margin: 0 auto !important; }
.Post-RichTextContainer { margin: 0 auto !important; }
    `);
    // 问题页面登录弹窗
    GM_addStyle (`
html { overflow: auto !important;}
.Modal-wrapper { display:none !important; }
.Modal-backdrop { display:none !important; background-color: transparent; }
.signFlowModal { display:none !important; }
    `);
    // 评论区隐藏输入框
    GM_addStyle (`
.CommentEditorV2--normal { display: none !important; }
.CommentEditor-singleButton { display: none !important; }
 `);
})();