Greasy Fork is available in English.

Baidu/Google搜索界面优化(AC-baidu-重定向双列优化)

Baidu/Google搜索界面优化

La data de 08-09-2021. Vezi ultima versiune.

// ==UserScript==
// @name              Baidu/Google搜索界面优化(AC-baidu-重定向双列优化)
// @name:zh           Baidu/Google搜索界面优化(AC-baidu-重定向双列优化)
// @namespace         ouka2020
// @version           0.2.1
// @description       Baidu/Google搜索界面优化
// @description:zh-cn Baidu/Google搜索界面优化
// @author            Ouka2020
// @include           *://ipv6.baidu.com/*
// @include           *://www.baidu.com/*
// @include           *://www1.baidu.com/*
// @include           *://encrypted.google.*/search*
// @include           *://*.google*/search*
// @include           *://*.google*/webhp*
// @exclude           *://*.google*/sorry*
// @exclude           https://zhidao.baidu.com/*
// @exclude           https://*.zhidao.baidu.com/*
// @grant             GM_addStyle
// ==/UserScript==

GM_addStyle( `
    /*google*/
    #main #cnt, #cnt #center_col, #cnt #foot {
      width: 96vw !important;
    }

    /*.big .lEXIrb {
      max-width: max-content;
    }*/

    /*baidu*/
    #container.sam_newgrid {
      margin-left: 2% !important;
    }

    body #container.sam_newgrid #content_left {
      width: 99%;
    }

    #wrapper {
      min-width: unset;
    }

    #bottom_layer {
      min-width: unset;
    }

    #wrapper #content_left {
      margin-left: unset !important;
    }

    form.fm .s_ipt_wr.bg {
      min-width: 500px !important;
    }

    /*.s_form_wrapper {
      justify-content: unset !important;
    }*/
`);


for (const it of document.querySelectorAll('div#search div.ULSxyf')){
    it.style.display="none";
}

for (const it of document.querySelectorAll('div#rhs')){
    it.style.display="none";
}

document.addEventListener('scroll', (e)=>{
    for (const it of document.querySelectorAll('div#search div.ULSxyf')){
        it.style.display="none";
    }
});