// ==UserScript== // @name Baidu/Google搜索界面优化(AC-baidu-重定向双列优化) // @name:zh Baidu/Google搜索界面优化(AC-baidu-重定向双列优化) // @namespace ouka2020 // @version 0.3.0 // @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 // @downloadURL none // ==/UserScript== GM_addStyle( ` /*google*/ #main #cnt, #cnt #center_col, #cnt #foot { width: 96vw !important; } .GyAeWb { margin-left: unset !important; } #rso .g { margin-left: 5px !important; margin-bottom: 5px !important; } /*baidu*/ #container.sam_newgrid { margin-left: 15px !important; } #content_left { margin-left: unset !important; } body #container.sam_newgrid #content_left { width: 98% !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"; } });