A recent update to Google's AI Studio introduced a new custom scrollbar for the prompt history. This change replaced the familiar, full-page native browser scrollbar with a new one that is really buggy and constraint to specific prompts, and sometimes prompts don't even show up on the scrollbar, overall annoying as hell.
I found this new behavior less intuitive and preferred the classic scrolling method. This script reverts the change they've made. I'd recommend giving Google 'feedback', as well as using this script, because ideally they'd revert the actual website, so this userscript is useless. Otherwise, they'll have a false-sense that people actually like this change they've made.
The script was supposed to focus on being minimal, having absolute no performance impact. And although it still kinda is, I grew tired of endlessly scrolling through long prompts to find the part of a conversation that I was looking for. So, I updated the script to solve that by adding a Table of Contents directly into the settings panel, which:
- Lists every "User Input", "Model Thinking", and "Model Output" turn in your prompt.
- Lets you click "Go To" to instantly jump to the top of any section.
- For long sections taller than your screen, a special "↓" button appears to jump directly to the bottom.
- Updates automatically as the prompt history grows.