www.baidu.com页面美化

美化搜索框,去除顶部菜单栏的背景颜色去除底部版权栏

// ==UserScript==
// @name         www.baidu.com页面美化
// @namespace    https://www.liuzhixi.cn/
// @version      1.5.6
// @description  美化搜索框,去除顶部菜单栏的背景颜色去除底部版权栏
// @author       小沫
// @match        *://www.baidu.com
// @match        *://www.baidu.com/?tn=*
// @icon         https://www.baidu.com/favicon.ico
// @grant        GM_addStyle
// @license      GPL License
// ==/UserScript==
function addStyle() {
    let css = `
    :root {
    --ThemeColor: #666;
    }
    ::-webkit-scrollbar, #s-top-left, #bottom_layer, #s_lm_wrap {
    display: none;
    }
    #lg.s-p-top{
    overflow: hidden;
    }
    #s_lg_img_new{
    filter: drop-shadow(0px -1000px var(--ThemeColor));
    margin-top: 1000px !important;
    }
    #s_mp area{
    position: absolute;
    bottom: 40px;
    width: 40%;
    height: 106px;
    left: 30%;
    }
    .s-top-right{
    width:100%;
    }
    .s-top-right .ai-entry-right{
     top: 18px;
     left: 50%;
     margin-right: 340px;
    }
    .s-top-right .operate-wrapper {
      display: inline-block;
      position: absolute;
      margin-right: 32px;
      top: 16px;
      right: 130px;
    }
    .s-top-right #s-usersetting-top, .s-top-right .s-top-username{
    float: right;
    }
    .s-top-right .s-weather-wrapper{
    float: left;
    padding-left: 24px;
    }
    #wrapper.wrapper_new div.s-skin-container{
    }
    .s-skin-hasbg #head_wrapper .s_btn {
    background: var(--ThemeColor);
    color: #fff;
    }
    .s-skin-hasbg #head_wrapper #form #kw.new-ipt-focus, .s-skin-hasbg #head_wrapper #form #kw:hover, .s-skin-hasbg #head_wrapper #form #kw:focus{
    border-color:var(--ThemeColor) !important;
    }
    .s-skin-hasbg #head_wrapper #form #kw, .s-skin-hasbg .soutu-env-new .soutu-layer #soutu-url-kw{
    background: none;
    border-color:var(--ThemeColor);
    border-right: none;
    }
    #head_wrapper .ipt_rec{
    background-image: url(https://cdnjson.com/images/2023/01/02/QQ20230102-1350202x49d48606b7426753.png);
    background-size: 24px 24px;
    background-color: #f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4KPC9zdmc+Cg==) no-repeat;
    background-size: cover;
    background-position: 0 -3px!important;
    }
    #head_wrapper .soutu-btn:hover{
    background: #fff0 url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI0LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IlN0YW5kYXJkX3Byb2R1Y3RfaWNvbiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE5MnB4IiBoZWlnaHQ9IjE5MnB4IiB2aWV3Qm94PSIwIDAgMTkyIDE5MiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTkyIDE5MiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxyZWN0IGlkPSJib3VuZGluZ19ib3hfMV8iIGZpbGw9Im5vbmUiIHdpZHRoPSIxOTIiIGhlaWdodD0iMTkyIi8+CjxnIGlkPSJhcnRfbGF5ZXIiPgoJPGNpcmNsZSBpZD0iRG90IiBmaWxsPSIjNDI4NUY0IiBjeD0iOTYiIGN5PSIxMDQuMTUiIHI9IjI4Ii8+Cgk8cGF0aCBpZD0iUmVkIiBmaWxsPSIjRUE0MzM1IiBkPSJNMTYwLDcydjQwLjE1VjEzNmMwLDEuNjktMC4zNCwzLjI5LTAuODIsNC44MnYwdjBjLTEuNTcsNC45Mi01LjQzLDguNzgtMTAuMzUsMTAuMzVoMHYwCgkJYy0xLjUzLDAuNDktMy4xMywwLjgyLTQuODIsMC44Mkg2NmwxNiwxNmg1MGgxMmM0LjQyLDAsOC42My0wLjksM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MzLDE2OCw0OCwxNjh6CgkJIi8+CjwvZz4KPC9zdmc+Cg==) no-repeat;
    background-size: cover;
    }
    #head_wrapper .ipt_rec:hover{
    background-size: 24px 24px;
    background-image: url(https://cdnjson.com/images/2023/01/02/QQ20230102-1350202x49d48606b7426753.png);
    background-position: 0 -1px;
    background-color: #fff0;
    }
    .s-skin-hasbg #head_wrapper .s_btn:hover {
    background-color: var(--ThemeColor);
    }
    .s-skin-hasbg .s-top-wrap {
    background: rgb(0 0 0 / 0%);
    }
    #s-user-setting-menu{
    right: 0px!important;
    }
    #head_wrapper #form .bdsug-new ul li{
    color: #feffff;
    }
    #head_wrapper #form .bdsug-new{
    border: 2px solid var(--ThemeColor) !important;
    }
    .s-skin-hasbg .soutu-env-new .soutu-layer .soutu-url-btn-new{
    border-color: var(--ThemeColor) !important;
    }
    .bdsug, .soutu-env-new .soutu-layer .soutu-url-btn-new, .soutu-env-new .soutu-layer .upload-wrap{
    background:var(--ThemeColor) !important
    }
    #head_wrapper #form .bdsug-new ul, .s-skin-hasbg .soutu-env-new .soutu-layer #soutu-url-kw{
    border:none;
    }
    .s-skin-hasbg #head_wrapper #form .bdsug-new{
    border-color: var(--ThemeColor) !important;
    margin-top: 8px;
    border-radius: 10px;
    }
    #s_mod_setweather{
    right: auto;
    }
    `;
    GM_addStyle(css);
}
(function () {
    'use strict';
     addStyle();

})();