Greasy Fork

来自缓存

Greasy Fork is available in English.

移除百度搜索广告

移除搜索结果广告

// ==UserScript==
// @name         移除百度搜索广告
// @namespace    http://tampermonkey.net/
// @version      1.0
// @author       zyl
// @match        https://*.baidu.com/*
// @grant        none
// @description 移除搜索结果广告
// @license MIT
// @run-at      document-start


// ==/UserScript==

(function() {
    'use strict';
    const style = document.createElement('style');
    style.innerHTML = `
        .b_ad,
        .gp2k11k,[class="result c-container new-pmd"] {
            visibility: hidden !important;height:0px;
    display: none !important;overflow:hidden;
        }
    `;

    document.documentElement.appendChild(style);
})();