您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
隐藏掉你可能感兴趣及热门内容推荐
当前为
// ==UserScript== // @name 知乎-我不感兴趣 // @namespace // @version 1.2.2 // @description 隐藏掉你可能感兴趣及热门内容推荐 // @author MQ // @match https://www.zhihu.com/ // @grant none // @namespace http://greasyfork.icu/users/159603 // ==/UserScript== (function() { 'use strict'; const mainFrame = document.querySelector(".TopstoryMain"); var ob = new MutationObserver(function () { //console.log("change triggered"); document.querySelectorAll(".Card.TopstoryItem").forEach(e => { try{ let feature = e.querySelector(".FeedSource-firstline"); if (feature.textContent.match(/你可能感兴趣|热门内容/)) { e.hidden = true; //[...e.children].forEach(inner => inner.hidden = true); console.log(feature.textContent, "hide"); } }catch(x){ console.log(x, e); } }); }); var config = { attributes: true, childList: true }; ob.observe(mainFrame, config); console.log("hooked"); }());