知乎样式:信息密集型

信息流更宽,更扁。减少了不必要的空隙,减小图片

目前為 2019-12-13 提交的版本,檢視 最新版本

// ==UserScript==
// @name         知乎样式:信息密集型
// @version      0.01
// @description  信息流更宽,更扁。减少了不必要的空隙,减小图片
// @author       wanglu
// @include       /https?\:\/\/www\.zhihu\.com/
// @namespace https://greasyfork.org/users/416853
// ==/UserScript==

var styles = `
    .TopstoryItem--advertCard{
    	display:none;
    }
    .Pc-card{
    	display:none;
    }
    .Footer{
    	display:none;
    }
    .StoryCompetitionBanner{
    	display:none;
    }
    
    .Topstory-container{
    	width:1200px;
    }
    .Topstory-mainColumn{
    	width: 900px;
    }
    .RichContent-cover{
    	height:70px;
    }
    .ContentItem-actions{
    	padding: 5px 20px;
    }
    .TopstoryItem-isRecommend{
    	padding: 10px 20px; 
    }
    .VoteButton{
    	background-color: rgb(255, 255, 255);
    }
`

var styleSheet = document.createElement("style")
styleSheet.type = "text/css"
styleSheet.innerText = styles
document.head.appendChild(styleSheet)