去广告,修改布局,去掉视频板块,去掉分享,关注,按钮。
知乎页面优化 by zcq100
Details
Authorzcq100
LicenseNo License
Categorywww.zhihu.com
Created
Updated
Size2.1 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Userstyle doesn't have notes.Source code
/* ==UserStyle==
@name www.zhihu.com
@version 20231029.08.07
@namespace userstyles.world/user/zcq100
@description 去广告,修改布局
@author zcq100
@license No License
==/UserStyle== */
@-moz-document domain("zhihu.com") {
/*设置网页背景*/
body {
background-color: #d3d3d3;
}
.QuestionAnswer-content .Reward,
.FollowButton,
.TopstoryItem--advertCard,
.Card .AdvertImg {
display: none;
}
/*首页去掉右边栏*/
.Topstory-container {
display: block;
}
.Topstory-mainColumn {
width: auto;
}
.Topstory-mainColumn + div {
display: none;
}
.Search-container .ContentItem-actions{
display: none;
}
/*顶部去掉一些栏目*/
.AppHeader-Tabs li:nth-child(2) {
display: none;
}
.GlobalSideBar-category > a {
display: none;
}
/*右侧滚动信息*/
.GlobalWriteV2 + div {
display: none;
}
.AnswerItem,
Article .RichText,
.ContentItem .RichContent-inner,
.HotItem-content .HotItem-excerpt {
font-family: "LXGW WenKai GB Screen", "微软雅黑";
font-size: 1.2em;
}
/*热门页面*/
.HotItem-action {
display: none;
}
/* 回答页面*/
.Question-main {
display: block;
}
.Question-main .Card {
border-radius: 10px;
margin-bottom: 20px;
}
.QuestionHeader-main {
width: 990px;
padding-left: 0px;
}
.QuestionHeader-side {
display: none;
}
/*问题的标题*/
.ContentItem .ContentItem-title {
font-size: 1.2em;
font-family: "微软雅黑";
font-weight: bolder;
}
.Question-mainColumn {
width: auto;
}
.Question-sideColumn {
display: none;
}
.Post-RichTextContainer .RichText img {
border-radius: 10px;
box-shadow: gray 5px 5px 5px;
}
/*S*/
.Search-container .RichContent .RichContent-inner{
height: 100px;
}
/*分享按钮*/
.ContentItem-actions .ShareMenu {
display: none;
}
/*文章*/
Article .RichText {}
.ColumnPageHeader-Wrapper+div{
display: none;
}
/*邀请按钮*/
div.QuestionHeaderActions:first-child {
display: none;
}
/*创作者中心按钮*/
.AppHeader-userInfo:nth-child(2) {}
}