Automatically collapses diffs on Jules.google.com upon page load
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.
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).