Google AI Studio - Auto Settings (UX Pro - v19.0)

Robust settings application with Smart Selectors, MD3 UI, and reliable focus restoration.

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Ivan Plankin
日安装量
3
总安装量
12
评分
0 0 1
版本
19.0
创建于
2025-11-06
更新于
2025-12-01
大小
31.7 KB
许可证
MIT
适用于

Google AI Studio - Auto Settings

License GreasyFork Version

A robust UserScript that automatically configures model parameters in Google AI Studio. It handles the repetitive task of setting Temperature, Top-P, Safety Settings, and Tools every time you open a chat or switch prompts.

✨ Key Features

  • 🎨 Visual Settings Menu: No more editing code! Configure your preferences through a modern, built-in UI designed to match Google's Material Design.
  • 🧠 Smart Selectors: Uses a robust detection system (searching by text labels and dynamic elements) to ensure the script works even if Google updates their CSS class names.
  • 💾 Persistent Storage: Settings are saved via your UserScript manager, persisting across sessions and script updates.
  • 📱 Mobile & Desktop Support: Works perfectly on desktop and automatically handles the side panel on mobile devices to apply settings and return focus.
  • 🖱️ Draggable FAB: A floating action button that indicates status. You can drag and place it anywhere on the screen, and it remembers its position.
  • ⚡ SPA Compatible: Detects navigation between chats (Single Page Application) and reapplies settings instantly without reloading the page.
  • ⌨️ Auto Focus: Automatically returns focus to the prompt input area after applying settings, so you can start typing immediately.

🚀 Installation

  1. Install a UserScript Manager:

    • Tampermonkey (Recommended for Chrome, Edge, Firefox, Safari)
    • Violentmonkey
  2. Install the Script:

🔧 Configuration

You can configure the script without touching the code.

Method 1: Right-Click the Button

  1. Locate the floating Settings Button (gear icon) on your screen.
  2. Right-click the button to open the Auto Settings Menu.
  3. Adjust your values and click Apply.

Method 2: Script Manager Menu

  1. Click your UserScript manager extension icon (e.g., Tampermonkey) in the browser toolbar.
  2. Select "⚙️ Settings" from the menu.

Available Settings:

  • Parameters: Temperature, Top-P, Top-K, Max Output Tokens.
  • Model Settings: Media Resolution, Thinking Level.
  • Tools & Toggles: Grounding (Google Search), Code Execution, Structured Outputs, Function Calling, URL Context.
  • UI Preferences: Toggle the visibility of the floating button.

🖥️ Interface Guide

The script adds a non-intrusive Floating Action Button (FAB) to your screen:

Icon Status Meaning Action
⚙️ / ⏳ Loading Applying... The script is currently searching for settings and applying values.
Success Done All settings have been applied successfully.
! Error Timeout Could not find some settings (or panel didn't open).

Interactions:

  • Left Click: Force re-apply settings.
  • Right Click: Open Configuration Menu.
  • Drag: Click and hold to move the button to any position.

📱 Mobile Behavior

On mobile devices, the script performs an automated sequence to ensure a smooth experience:

  1. Detects if the settings panel is closed.
  2. Automatically opens the Run Settings panel.
  3. Applies your configured parameters.
  4. Closes the panel automatically to return focus to the chat input.

🤝 Contributing

Google frequently updates the AI Studio interface. If the script stops working, feel free to open an issue or submit a pull request with updated selectors.


This script is not affiliated with Google.