Greasy Fork

Greasy Fork is available in English.

百度首页透明

百度首页透明!

// ==UserScript==
// @name         百度首页透明
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  百度首页透明!
// @author       You
// @match      https://www.baidu.com/?tn=*
// @grant        none
// ==/UserScript==
(function() {
    'use strict';
    // Your code here...
    let s_top_wrap = document.getElementById('s_top_wrap');
    if (s_top_wrap) {
        s_top_wrap.style.background = 'rgba(0,0,0,0)';
    }
    let s_main = document.getElementById("s_main")
    if(s_main) {
      s_main.style.background = 'rgba(255,255,255,0)'
    }
    let codeBlocks = document.getElementsByClassName('s-code-blocks');
    if (codeBlocks) {
        for (let i = 0; i < codeBlocks.length; i++) {
            codeBlocks[i].style.boxShadow = '0 0 0 0 rgba(0,0,0,0)'
        }
    }
    let s_lm_wrap=document.getElementById("s_lm_wrap");
    if (s_lm_wrap) {
        s_lm_wrap.remove();
    }
    let bottom_layer = document.getElementById("bottom_layer");
    if (bottom_layer) {
        bottom_layer.style.background = 'rgba(0,0,0,0)';
    }
    document.getElementsByTagName('html')[0].style.overflowY='hidden';
})();