Jules Auto-Collapse Diffs

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

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!)

Autor
Kamil Cihan Sipahi
Denně instalací
0
Celkem instalací
1
Hodnocení
0 0 0
Verze
1.2
Vytvořeno
25. 02. 2026
Aktualizováno
25. 02. 2026
Size
1,6 KB
Licence
MIT
Spustit na

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).