Better ZhiHu

Better ZhiHu view

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

Advertisement:

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Advertisement:

// ==UserScript==
// @name         Better ZhiHu
// @version      1.1
// @description  Better ZhiHu view
// @author       Aiello Chan
// @namespace aiellochan.com
// @match           *://www.zhihu.com/question/*
// @match			*://www.zhihu.com/search*
// @match			*://www.zhihu.com/hot
// @match			*://www.zhihu.com/follow
// @match			*://www.zhihu.com/
// @match           *://www.zhihu.com/signin*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    const styleNode = document.createElement("style")

    setTimeout(function(){document.title = "知乎"}, 3e3)

    let cssFix = ""
    cssFix += ".Question-mainColumn{width:auto;}" // 答案页全宽
    cssFix += "header,.Question-sideColumn--sticky{display:none !important;}" // 去掉浮动头部
    cssFix += 'html{overflow:auto !important;} .Modal-backdrop,.signFlowModal{display:none !important;}' // 干掉登陆提示

    styleNode.innerText = cssFix
    document.body.append(styleNode)
})();