//fuck baidu // ==UserScript== // @name Fuck baidu // @namespace http://tampermonkey.net/ // @version 1.4 // @description 屏蔽与百度相关的搜索结果Filter out all search results related to "baidu.com" from search engines. // @author Hijack_Nick // @match *://www.google.com/search* // @match *://www.bing.com/search* // @match *://search.yahoo.com/search* // @match *://global.bing.com/search* // @match *://cn.bing.com/search* // @grant none // @license MIT // @downloadURL none // ==/UserScript== (function() { 'use strict'; const filterKeywords = ['baidu', '百度']; function filterResults() { const results = document.querySelectorAll('.b_algo'); results.forEach(result => { const resultText = result.innerText.toLowerCase(); filterKeywords.forEach(keyword => { if (resultText.includes(keyword)) { result.style.display = 'none'; } }); }); } filterResults(); const searchInput = document.querySelector('#sb_form_q'); if (searchInput) { searchInput.addEventListener('input', () => { const results = document.querySelectorAll('.b_algo'); results.forEach(result => { result.style.display = ''; }); }); const searchForm = document.querySelector('#sb_form'); if (searchForm) { searchForm.addEventListener('submit', (event) => { event.preventDefault(); filterResults(); }); } } })();