fuck知乎

为了上班刷知乎 隐藏了顶部栏 侧边栏 图片调小

目前為 2018-03-15 提交的版本,檢視 最新版本

// ==UserScript==
// @name         fuck知乎
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  为了上班刷知乎 隐藏了顶部栏 侧边栏 图片调小
// @author       jokewu
// @match        https://www.zhihu.com/question/*/answer/*
// @match        https://www.zhihu.com/
// @match        https://www.zhihu.com/question/*
// @match        https://www.zhihu.com/*/*/*
// @match        https://www.zhihu.com/topic/*/hot
// @match        https://www.zhihu.com/*
// @grant        none
// ==/UserScript==

(function() {
    var css=".ArticleItem-image{width:100px}.content_image{width:50px}.zh-lightbox-thumb{width:100px}.origin_image{width:100px,height:100px}.is-hidden{display:none}";
    css+=".TopstorySideBar{display:none}.Question-sideColumn--sticky{display:none}.column-gif{width:150px}.RichContent-cover{display:none}.VideoCard{width:150px}";
    css+=".TopstoryItem--advertCard{display:none}.GlobalSideBar{display:none}a[href='//www.zhihu.com']{display:none}.AppHeader-nav{display:none}";
    css+=".AppHeader{min-width:200px}.AppHeader-inner{width:552px}div[data-reactid='5']{width:569px}header[data-za-module='TopNavBar']{margin-left:1332px}header[role='banner']{width:569px}.SearchBar .QuestionAskButton{display:none}";
    var style=document.createElement('style');
    style.type="text/css";
    style.innerHTML=css;
    document.getElementsByTagName('head')[0].appendChild(style);

})();