Greasy Fork

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

Baidu/Google搜索界面优化

目前为 2022-07-29 提交的版本。查看 最新版本

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

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

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

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

document.querySelectorAll('div.ULSxyf').forEach(it => it.remove());
document.querySelectorAll('g-section-with-header').forEach(it => it.remove());