Google Multi-Columns Style

styled google search result list to multi-columns

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

/* ==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;
        }
    }
}