Zhihu free read

Zhihu free read, no login required

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Zhihu free read
// @name:zh-CN   知乎无障碍阅读
// @description  Zhihu free read, no login required
// @description:zh-cn 知乎无障碍阅读免登陆
// @version      1.0
// @author       Anc
// @include      *://*zhihu.com/*
// @grant        none


// @namespace https://greasyfork.org/users/61607
// ==/UserScript==

(function() {
    'use strict';
    // 自动跳转到指定的网址
    if (window.location.href.includes("www.zhihu.com/question/")) {
        var newUrl = window.location.href.replace("www.zhihu.com/question/", "www.zhihu.com/aria/question/");
        console.log('redirect to', newUrl);
        window.location.href = newUrl;
    }

    // 等待页面加载完成后执行隐藏元素和缩放内容的操作
    window.onload = function() {
        // 隐藏id为toolbarHtml的元素
        var toolbar = document.getElementById("toolbarHtml");
        if (toolbar) {
            toolbar.style.display = "none";
            // 缩放页面内容到70%
            document.body.style.zoom = "70%";
        }

    };
})();