泥潭日报 uscardforum · 每日精选

[水] 宽体Gemini

内容摘要

用户脚本扩展 Gemini 聊天宽度并修复主题与表格显示。

1. 关键信息

  • 脚本:Gemini Safe-Wide Mode v2.1,Tampermonkey,匹配 https://gemini.google.com/*,@run-at document-end。
  • 改动:扩展容器至 95%/80%,消息气泡 100%,.user-query-bubble-with-background 绿色 (#1b5e20 / #e9eef6),.text-input-field 100%,.table-block 100%。
  • 作者:@zpahai 编写,@gedeepege 优化;Gemini 官方编写(@钛合金会员 提问)。

2. 羊毛/优惠信息

3. 最新动态

  • @gedeepege 反馈已改对话框颜色为浅绿并拉长表格(#2)。
  • 主题切换:@zpahai 使用 dark mode(#3)。

4. 争议或不同意见

5. 行动建议

原始内容
--- 第 1 楼来自 zpahai 的回复 (2026-03-25 22:30:54 PDT) ---

因为我常用Gemini问答 遂制作此脚本让Gemini再次伟大

脚本
// ==UserScript==
// @name Gemini Safe-Wide Mode
// @namespace http://tampermonkey.net/
// @version 2.1
// @description A safer way to widen Gemini without breaking the layout.
// @author You
// @match https://gemini.google.com/*
// @grant GM_addStyle
// @run-at document-end
// ==/UserScript==

(function() {
'use strict';

const css = `
/* 1. Expand the main containers safely */
.conversation-container,
.input-area-container,
.bottom-container {
max-width: 95% !important; /* Uses percentage to avoid overflow issues */
width: 95% !important;
}

/* 2. Fix the message bubbles so they don't stay narrow */
user-query,
.user-query-container,
.user-query-bubble-with-background,
.message-content {
max-width: 100% !important;
width: 100% !important;
}

/* 3. Re-apply your custom Green theme */
.user-query-bubble-with-background {
background-color: #1b5e20 !important;
}

/* 4. Ensure the text input stays visible */
.text-input-field {
max-width: none !important;
width: 100% !important;
}
`;

const style = document.createElement('style');
style.textContent = css;
document.head.append(style);
})();

--- 第 2 楼来自 gedeepege 的回复 (2026-03-26 18:36:55 PDT) ---

不错, 我把那个对话框颜色改了, 绿色太奇怪了

顺便把表格的宽度也拉长了
// ==UserScript==
// @name Gemini Safe-Wide Mode
// @namespace http://tampermonkey.net/
// @version 2.1
// @description A safer way to widen Gemini without breaking the layout.
// @author You
// @match https://gemini.google.com/*
// @grant GM_addStyle
// @run-at document-end
// ==/UserScript==

(function() {
'use strict';

const css = `
/* 1. Expand the main containers safely */
.conversation-container,
.input-area-container,
.bottom-container {
max-width: 80% !important; /* Uses percentage to avoid overflow issues */
width: 80% !important;
}

/* 2. Fix the message bubbles so they don't stay narrow */
user-query,
.user-query-container,
.user-query-bubble-with-background,
.message-content {
max-width: 100% !important;
}

/* 3. Re-apply your custom Green theme */
.user-query-bubble-with-background {
background-color: #e9eef6 !important;
}

/* 4. Ensure the text input stays visible */
.text-input-field {
max-width: none !important;
width: 98% !important;
}

.table-block {
max-width: 100% !important;
}
`;

const style = document.createElement('style');
style.textContent = css;
document.head.append(style);
})();

效果:

image3434×2620 622 KB

--- 第 3 楼来自 zpahai 的回复 (2026-03-26 19:29:06 PDT) ---

我用的是dark mode哈哈

--- 第 4 楼来自 钛合金会员 的回复 (2026-03-26 19:43:23 PDT) ---

脚本是gemini自己写的吗

--- 第 5 楼来自 zpahai 的回复 (2026-03-26 19:43:42 PDT) ---

是的

--- 第 6 楼来自 白金会员 的回复 (2026-03-26 19:54:10 PDT) ---

好东西呀!