Gemini Web UI Optimizer

Optimize long text fluency and add local code folding. Note: The global folding feature is currently in Beta.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
JayConstruct
1日のインストール数
0
累計インストール数
5
評価
0 0 0
バージョン
1.0.1
作成日
2026/04/30
更新日
2026/04/30
大きさ
11.5KB
ライセンス
MIT
対象サイト

gemini-web-optimizer

优化gemini网页版超长文本的流畅度,添加代码折叠功能。

你还在被 Gemini 网页版越聊越卡的现象困扰吗?

经过实测,在未经优化的原生页面中,几十轮包含大量代码块的对话足以让浏览器严重掉帧。本脚本专为重度用户打造,实测显示:即使面对 30+ 轮的超长代码对话,依然能保持满血的流畅度!

特性: 采用动态时间分片调度,重构页面代码高亮(hljs)的渲染逻辑,彻底解决长文本堆积导致的滚动卡顿。

复用官方 UI,显示在代码块的复制按钮旁边。局部一键收起/展开,并完美修复了折叠时的滚动条乱跳问题。

[Beta] 顶部 Header 注入全局开关,一键折叠所有冗长代码,让你的阅读视野瞬间清爽。

Gemini Ultimate Power Tool: Lag-Free & Smart Folding

Still struggling with the severe lag on Gemini's web interface during long sessions? > Try this script! Benchmark testing shows that even in heavy scenarios with 30+ turns of conversation containing massive code blocks, the scrolling and interaction remain buttery smooth.

Fiber-Optimized Rendering: Resolves frame-drops caused by heavy syntax highlighting.

Pixel-Perfect Local Folding: Seamlessly integrated UI with flawless scroll anchoring.

[Beta] Global Fold Engine: One-click toggle at the top navigation bar to collapse/expand all code blocks instantly.

演示动图

指标 优化前 优化后
INP (交互延迟) 3542 ms (卡顿阻塞) 83 ms (丝滑响应)
INP 性能对比图:3542ms 降至 83ms