知乎上班摸鱼隐藏标题和图片

隐藏图片和标题

目前为 2021-08-30 提交的版本。查看 最新版本

// ==UserScript==
// @name         知乎上班摸鱼隐藏标题和图片
// @namespace    http://zhihu.com
// @version      1.2
// @description  隐藏图片和标题
// @author       youchao
// @match        https://*.zhihu.com/*
// @grant        none
// @require      https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
// ==/UserScript==



(function () {
    var imgHiden = function() {
        $(".RichContent-cover-inner").each(function(){
            $(this).hide();
        });
        $(".ZVideoRecommendationItem-thumbnailImage").each(function(){
            $(this).hide();
        });
        $("iframee").each(function(){
            $(this).hide();
        });
        $("img").each(function(){
            $(this).hide();
        });
        $("svg").each(function(){
            $(this).hide();
        });
    };
    imgHiden();
    var id = setInterval(function(){
        imgHiden();
    }, 300)
    })()