知乎阅读模式

try to take over the world!

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         知乎阅读模式
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       Long
// @match        https://www.zhihu.com/*
// @match        https://zhuanlan.zhihu.com/*
// @require      https://code.jquery.com/jquery-3.1.1.min.js
// @grant        none
// ==/UserScript==

(function () {
    $(".AppHeader").hide();  //隐藏主页上部分
    $(".GlobalSideBar").hide();  //隐藏右侧
    $(".QuestionHeader-footer-inner").hide();  //隐藏问题中  关注问题、写回答、邀请回答等字
    $(".Question-sideColumn").hide();  //隐藏右侧作者介绍\
    $("link[rel='shortcut icon']")[0].href = 'https://gitee.com/static/images/logo-black.svg?t=158106664';  //更换title图标
    $('body').css("background", "black");  //改变背景色
    $('body').css("background-image", "url(https://csdnimg.cn/release/phoenix/template/themes_skin/skin-blackboard/images/bg.jpg)");  //背景图片
    $('.ContentItem-more').click();  //打开阅读全文
    for (let i = 0; i < $(".RichContent").length; i++) {
        //console.log($(".RichContent")[i].innerText);
    }
    var x=0;
    //window.location.reload();
     $("body").click(function() {
     console.log(x+=1);
  });
    function tishi() {
        $("title").html('Flask in Web');
    }

    setTimeout(tishi, 1000);

})();