zhi-hu

知知乎乎(收藏夹双列;隐藏视频回答;)

Pada tanggal 30 Agustus 2022. Lihat %(latest_version_link).

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         zhi-hu
// @namespace    https://greasyfork.org/zh-CN/scripts/438709-zhi-hu
// @version      0.0.5
// @description  知知乎乎(收藏夹双列;隐藏视频回答;)
// @author       Song
// @match        *://www.zhihu.com/*
// @license MIT
// @grant        none
// ==/UserScript==
(function () {
    /**
     * 插入样式表
     */
    function insertCSS() {
        let styleSheet = document.styleSheets[document.styleSheets.length - 1];
        /*收藏栏的样式,变成双列*/
        styleSheet.insertRule('.Modal--large.FavlistsModal {width: 600px;}');
        styleSheet.insertRule('.Favlists-content .Favlists-item {width: 230px; float: left;}');
        styleSheet.insertRule(' .Favlists-content .Favlists-item:nth-child(even){margin-left: 60px;}');
		
	    /*隐藏视频回答*/
	    styleSheet.insertRule('.VideoAnswerPlayer .VideoAnswerPlayer-video {height: 0px;}');
        styleSheet.insertRule('.ZVideoItem  {height: 2px;}');
        
        /*视频*/
        styleSheet.insertRule('.ZVideoItem .RichContent{opacity: 0.5; color: #666  !important; font-style:italic !important;}');

       /*调整列表中专栏文章的样式*/
       styleSheet.insertRule('.ContentItem[itemprop=article]{opacity: 0.5; color: #666;font-style:italic;}');
       styleSheet.insertRule('.ContentItem[itemprop=article] .ContentItem-title{color: #666; }');


    }

    insertCSS();
})();