您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
一键屏蔽知乎的盐选内容
当前为
// ==UserScript== // @name 知乎屏蔽盐选 // @namespace https://github.com/KingCheni/Zhihu-Block-YanXuan // @version 1.0 // @description 一键屏蔽知乎的盐选内容 // @author KingChen // @match https://*.zhihu.com/* // @grant none // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js // ==/UserScript== (function() { 'use strict'; let zhihu = {}; zhihu.clear = ()=>{ $(".Card").find(".List-item").each(function(){ //let that=this; if($(this).find(".KfeCollection-OrdinaryLabel-content").text().indexOf("盐选")!=-1){ $(this).hide() } }) } zhihu.timer = setInterval(function(){ if($(".Card").find(".List-item").length>0){ zhihu.clear(); clearInterval(zhihu.timer); } },1000) zhihu.onMouseScroll = (e)=>{ //e.preventDefault(); var wheel = e.originalEvent.wheelDelta || -e.originalEvent.detail; var delta = Math.max(-1, Math.min(1, wheel) ); if(delta<0){ //console.log('向下滚动'); zhihu.clear(); }else{ //console.log('向上滚动'); } } $(document).on('mousewheel DOMMouseScroll', zhihu.onMouseScroll); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址