DEV Community

Axl
Axl

Posted on

Improving navigation in long Google AI Studio chats with a userscript

Working with long chat sessions in Google AI Studio exposes several usability issues, including inefficient navigation, loss of context, and limited keyboard control.

To address this, I wrote a userscript that adds navigation and keyboard-focused controls on top of the existing interface. The goal was to improve day-to-day usability by layering additional controls on top of the existing interface.

QuickNav interface showing the Message Index, Navigation Controls, and Layout Settings.

The script provides:
– a navigation bar in the chat footer with buttons to jump to the Previous, Next, First, and Last message
– a message index menu listing all conversation turns with text previews, toggled via the counter button or Alt + M
– dropdown controls to adjust font size and increase chat container width
– injected buttons in code headers to jump to the top or bottom of code snippets
– a floating scroll indicator showing the current message number and percentage while scrolling
– keyboard shortcuts for chat interaction without a mouse, including:
• Alt + PgUp/PgDn (navigate)
• Shift + Alt + PgUp/PgDn (jump to start/end)
• Alt + M (menu)
• Alt + P (focus prompt input)
• Alt + -/= (font size)
• Shift + Alt + -/= (chat width)

All logic runs locally in the browser. The script does not send or collect any data.

The script is available on GreasyFork:
https://greasyfork.org/en/scripts/548346-quicknav-for-google-ai-studio

Feedback and suggestions are welcome.

Top comments (0)