Greasy Fork 支持简体中文。

百度主页下边栏隐藏

隐藏百度主页下边栏

// ==UserScript==
// @name         百度主页下边栏隐藏
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  隐藏百度主页下边栏
// @author       StarDust
// @match        https://www.baidu.com/*
// @grant        none
// @run-at        document-start
// ==/UserScript==

(function () {
    'use strict';

    new MutationObserver(function (mutations) {
        if (document.getElementById("bottom_layer")) {
            const bannerBottomElement = document.getElementById("bottom_layer");
            if (bannerBottomElement) {
                bannerBottomElement.remove();
                this.disconnect(); // disconnect the observer
            }
        }
    }).observe(document, { childList: true, subtree: true });
    // the above observes added/removed nodes on all descendants recursively
})();