Jules Auto-Collapse Diffs

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

Fejlesztő
Kamil Cihan Sipahi
Napi telepítések
0
Telepítések száma
1
Értékelések
0 0 0
Verzió
1.2
Létrehozva
2026.02.25.
Frissítve
2026.02.25.
Size
2 KB
Licensz
MIT
Érvényes

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