Jules Auto-Collapse Diffs

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
Kamil Cihan Sipahi
Dziennych instalacji
0
Wszystkich instalacji
1
Oceny
0 0 0
Wersja
1.2
Utworzono
25-02-2026
Zaktualizowano
25-02-2026
Rozmiar
1,57 KB
Licencja
MIT
Dotyczy

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