您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bing 검색 결과를 Google 스타일로 바꾸고, 광고를 차단합니다
当前为
// ==UserScript== // @name Google-Style Bing + AdBlock // @namespace http://tampermonkey.net/ // @version 1.0 // @description Bing 검색 결과를 Google 스타일로 바꾸고, 광고를 차단합니다 // @author lanpod // @match *://www.bing.com/* // @grant GM_addStyle // @license MIT // ==/UserScript== (function() { 'use strict'; GM_addStyle(` /* Use Google's default font, but keep Bing's font size */ body, input, button { font-family: Arial, sans-serif !important; } /* Set Google's background color */ body { background-color: #ffffff !important; } /* Search result title */ #b_results>li a, h2 a { font-weight: normal !important; color: #1a0dab !important; /* Google blue */ } /* Visited link color */ a:visited, #b_results>li a:visited { color: #660099 !important; /* Google purple */ } /* Description text */ #b_results>li p { color: #4d5156 !important; /* Google description color */ } /* Hide only advertisements */ #b_results .b_ad, /* Bing 광고 섹션 */ .b_top .b_ad, /* 상단 광고 */ .b_ad .b_caption, /* 광고 설명 */ .b_ad label, /* 광고 라벨 */ .b_ad div /* 광고 내부 요소 */ { display: none !important; } `); // JavaScript를 이용한 광고 제거 function removeAds() { document.querySelectorAll('.b_ad').forEach(ad => ad.remove()); } // 처음 실행 시 광고 제거 removeAds(); // 동적 광고 제거 (MutationObserver 활용) const observer = new MutationObserver(() => { removeAds(); }); observer.observe(document.body, { childList: true, subtree: true }); })();