Google-Style Bing + AdBlock

Bing 검색 결과를 Google 스타일로 바꾸고, 광고를 차단합니다

As of 2025-02-26. See the latest version.

// ==UserScript==
// @name         Google-Style Bing + AdBlock
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Bing 검색 결과를 Google 스타일로 바꾸고, 광고를 차단합니다
// @author       lanpod
// @match        *://www.bing.com/*
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    GM_addStyle(`
        /* 일반 검색 결과 링크 */
        #b_results>li a, h2 a,
        /* 뉴스 섹션 등 기타 검색 결과 링크 */
        .b_algo a, .b_algo h2 a,
        .b_caption a, .b_vList a {
            font-weight: normal !important;
            color: #1a0dab !important; /* Google blue */
        }

        /* 방문한 링크 색상 적용 (모든 영역 포함) */
        a:visited, 
        #b_results>li a:visited,
        .b_algo a:visited, 
        .b_caption a:visited, 
        .b_vList a:visited {
            color: #660099 !important; /* Google purple */
        }

        /* 광고 숨기기 */
        #b_results .b_ad, .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 });
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元