Jules Auto-Collapse Diffs

Automatically collapses diffs on Jules.google.com upon page load

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Jules Auto-Collapse Diffs

When reviewing code on Jules, large files with thousands of lines can cause the browser to lag and drop performance.

This userscript automatically clicks the "Collapse all" button for you as soon as the page loads, keeping your diffs collapsed by default and preserving your browser's performance.

🚀 Features

  • Auto-Collapse: Closes the diffs automatically upon page load.
  • SPA Compatible: Works seamlessly during in-app navigation (URL changes) without requiring a hard refresh.
  • No Infinite Loops: Triggers only once per page load, allowing you to manually expand files whenever you need to without the script fighting back.

⚙️ Customization (Timeout Adjustment)

Page load times can vary depending on your hardware and internet speed. To ensure stability, there is a slight delay (timeout) built into the script before it clicks the button.

If the script triggers too early (before the button is ready) or too late, you can easily adjust the 200 (milliseconds) value inside the setTimeout function in the code to match your system (e.g., 500 or 800).