您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Keep only main content in zhihu
// ==UserScript== // @name Eink-Zhihu // @namespace https://gf.qytechs.cn/users/169007 // @version 1.4.6 // @description Keep only main content in zhihu // @author ZZYSonny // @match https://www.zhihu.com/* // @grant none // @run-at document-start // ==/UserScript== (function () { 'use strict'; const head = document.getElementsByTagName('head')[0]; const exGlobalStyle = document.createElement('style'); const M = [ [ [ ".VideoAnswerPlayer", ".CornerButtons", ".AppHeader", ".QuestionHeader", ".Question-sideColumn", ".GlobalSideBar", ".Reward", ".Catalog", ".Sticky", ".MCNLinkCard", ".Topstory > div:not(.Topstory-container)" ], c => `${c}{display: none;}` ], [ [ ".Question-main", ".Question-mainColumn", ".Topstory-container", ".Topstory-mainColumn" ],c => `${c}{width:100%;padding:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;}` ], [ ["figure"], c => `${c}{width: 50%;padding-left:25%;pointer-events:none;}` ] ]; exGlobalStyle.type = 'text/css'; exGlobalStyle.innerHTML = M.flatMap(p => p[0].map(p[1])).join("\n"); head.appendChild(exGlobalStyle); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址