Wider Gemini

Widen Gemini display area

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Wider Gemini
// @name:zh-CN   加宽 Gemini
// @namespace    http://tampermonkey.net/
// @version      2.2
// @description  Widen Gemini display area
// @description:zh-CN  加宽 Gemini 网页版显示区域
// @author       dean
// @match        https://gemini.google.com/*
// @grant        GM_addStyle
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    const CONFIG = {
        width: '92%',
        max: '1800px'
    };

    const selectors = [
        'mat-sidenav-content',
        '.main-content',
        '.input-area-container',
        '.bottom-bar-container',
        '.conversation-container'
    ];

    const customCSS = `
        ${selectors.join(', ')} {
            width: ${CONFIG.width} !important;
            max-width: ${CONFIG.max} !important;
            margin-left: auto !important;
            margin-right: auto !important;
        }

        .conversation-container {
            width: 100% !important;
        }

        @media (min-width: 2560px) {
            ${selectors.join(', ')} {
                max-width: 2000px !important;
            }
        }
    `;

    try {
        GM_addStyle(customCSS);
        console.log('Wider Gemini v2.4 applied.');
    } catch (e) {
        console.error('Wider Gemini script error:', e);
    }
})();