您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
从必应的搜索结果中删除csdn链接
// ==UserScript== // @name 从必应搜索结果中删除CSDN // @namespace https://sjzlei1989.github.io // @version 0.4 // @description 从必应的搜索结果中删除csdn链接 // @author xiaolei // @match https://cn.bing.com/* // @grant none // ==/UserScript== (function() { 'use strict'; const str = "csdn.net"; let contentDom = document.getElementById("b_results"); if(contentDom == null) return; let items = contentDom.getElementsByClassName("b_algo"); if(items == null) return; let indexToDelete = []; for(let i = 0; i < items.length; i++) { let sh_favicon = items[i].getElementsByClassName("tilk"); if(null == sh_favicon) return; let url = sh_favicon[0].href; if(url.toLowerCase().includes(str)) { indexToDelete.push(items[i]); } } for(let i = 0; i < indexToDelete.length; i++) { indexToDelete[i].remove(); } })();