Gemini Userscripts
Install
Gemini Auto-focusv1.6.0
Focus the editor, default to the 4 Argon model with Medium thinking, and map Ctrl+N / Ctrl+F to Gemini actions
Userscripts run in a userscript manager such as Tampermonkey, Violentmonkey, or ScriptCat. With one installed, Install opens its install prompt.
This userscript keeps the Gemini prompt box focused, selects the 4 Argon model with Medium thinking on new chats, and adds Ctrl+N and Ctrl+F shortcuts.
What it does
- focuses the editor on page load and when the window regains focus
- on new chat pages (
/app,/app/,/), opens the model picker and selects the first option matching the model pattern - default pattern is
Argon, matched case-insensitively as a regex - sets the thinking level to Medium, since Gemini starts every page load on Low; this applies to whichever model is selected, even with auto-switch off
- waits up to 3 minutes for the picker, which can render late (especially in background tabs)
- re-checks after SPA navigation, with a 300 ms debounce
- restores the editor text and focus if the switch clears them
- Ctrl+N clicks the "New chat" link
- Ctrl+F clicks the "Search" button
Settings
Available from the userscript manager menu:
Auto-switch model: ON/OFFtoggles model switching (stored asautoSwitchEnabled)Set model pattern (regex)...changes the pattern (stored asmodelPattern). A previously saved pattern wins over theArgondefault. If auto-switching still lands on Pro, enterArgonhere; an empty entry is ignored, so there is no reset
Limitations
- uses
GM_getValue,GM_setValue, andGM_registerMenuCommand, so it needs a userscript manager that supports them - relies on Gemini's current
data-test-idandaria-labelattributes - the option label carries its sub-line too (
4 Argon Complex tasks), so keep the pattern to the model name; a pattern matching the sub-line picks whichever model shares that word
Questions or feedback about Gemini Userscripts? Get in touch.
Support
Find Gemini Userscripts useful?
Gemini Userscripts has no paywall. A tip helps keep it running and pays for what we build next.
Checkout opens on Stripe, where you can change the amount. Why tips?
Related products
Two userscripts for GitHub pull requests: one puts failing status checks first, the other shows additions and deletions next to each pull request in lists.
2 userscripts
Rewrites Zoom meeting links in Google Calendar so clicking one opens the Zoom desktop app directly instead of a browser tab that then launches Zoom.
1 userscript
Two userscripts for Google Meet calls: one turns off your microphone and camera when you join, the other offers to leave once the call empties out.
2 userscripts