Google Multi-Columns Style

styled google search result list to multi-columns

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

/* ==UserStyle==
@name:zh-CN    Google 多列样式
@name        Google Multi-Columns Style
@namespace    doufu.ru
@version      1.0.4
@description   styled google search result list to multi-columns
@description:zh-CN Google 搜索结果多列展示
@author      Ryan
@license    gpl-3.0
@preprocessor stylus
@var number   maxColumns "Max Columns"       [2,1,3,1]
==/UserStyle== */
@-moz-document regexp("^https?:\\/\\/(www.?)google\\.co(m?)(\\.[a-z]+)?\\/search.*") {
    body {
        overflow-x: hidden;
    }
    .main {
        margin: 0 auto;
    }
    #searchform {
        display: flex;
        justify-content: center;
        gap: 8px;
        min-width: unset;
    }
    #searchform form.tsf {
        margin-right: 25px;
    }
    #hdtb,
    #slim_appbar {
        display: flex;
        justify-content: center;
    }
    #rcnt {
        width: 100%;
        max-width: unset;
        justify-content: center;
        --center-abs-margin: 0;
    }
    #main {
        width: 100%;
        max-width: calc(100% - 240px) !important;
        min-width: unset !important;
    }
    if maxColumns > 1 {
        #rhs {
            display: none;
        }
        #center_col {
            width: 100%;
        }
        #rso,
        #kp-wp-tab-overview,
        div[data-state-token],
        [id^="arc-srp"] > div[decode-data-ved]{
            --columns: maxColumns;
            --gap: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: var(--gap);
        }
        #kp-wp-tab-overview > span {
            display: none;
        }
        #rso > div,
        #kp-wp-tab-overview > div,
        [id^="arc-srp"] > div[decode-data-ved] > div {
            min-width: unset;
            max-width: unset;
            width: calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns));
            margin: 0 !important;
        }
        #rso > div > div {
            margin: 0 !important;
        }
        #kp-wp-tab-overview > div:last-child,
        div[data-state-token] > div:last-child,
        #tvcap {
            display: none;
        }
    }
}