Block Images on Zhihu

Block all images on Zhihu

目前为 2023-03-24 提交的版本。查看 最新版本

// ==UserScript==
// @name         Block Images on Zhihu
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Block all images on Zhihu
// @match        https://www.zhihu.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const observer = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            const images = mutation.target.getElementsByTagName('img');
            for (let i = 0; i < images.length; i++) {
                images[i].style.display = 'none';
            }
        });
    });

    observer.observe(document.body, { childList: true, subtree: true });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址