您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
屏蔽知乎盐选等账号
// ==UserScript== // @name 知乎账号回答屏蔽工具 // @namespace https://hmilyld.com/ // @version 0.1 // @description 屏蔽知乎盐选等账号 // @author Hmilyld // @match https://www.zhihu.com/* // @require https://cdn.bootcdn.net/ajax/libs/jquery/1.10.0/jquery.min.js // @grant none // ==/UserScript== (function () { 'use strict'; //需要屏蔽的用户 var users = [ "盐选科普","故事档案局","盐选推荐","真实故事计划" ] if ($('#ProfileMain').length > 0) { new MutationObserver(function (mutations) { remove_item(); }).observe(document.getElementById('ProfileMain'), { childList: true, subtree: true, }) } if ($('#QuestionAnswers-answers').length > 0) { new MutationObserver(function (mutations) { remove_item(); }).observe(document.getElementById('QuestionAnswers-answers'), { childList: true, subtree: true, }) } function remove_item() { $.each(users, function (idx, item) { $("meta[content='" + item + "']").closest(".List-item").hide(); }) } remove_item(); })();