Google AI Studio profile manager

Manage and switch between multiple custom system instruction profiles in Google AI Studio.

目前為 2025-10-18 提交的版本,檢視 最新版本

作者
LetMeFixIt
評價
0 0 0
版本
1.1
建立日期
2025-10-14
更新日期
2025-10-18
尺寸
78.9 KB
授權條款
MIT
腳本執行於

Summary of changes:

New Features:

  • Default Profile Auto-Injection: Added the ability to designate a profile as the default via the right-click context menu, which automatically injects its instructions into the system prompt upon page load.
  • AI Refinement History (Undo/Redo): The Profile Editor now includes version control for AI-refined prompts, allowing users to step back () and forward () through previous versions of the instructions.
  • AI Refinement Guidance: Added an optional text area in the Profile Editor that allows users to provide specific instructions (guidance) to the LLM during the refinement process, and updated the default meta-prompts to utilize this guidance via a new {GUIDANCE} placeholder.

User Experience (UX) Improvements:

  • Responsive Profile Editor: The Profile Editor modal was completely overhauled to be a full-screen, vertically responsive layout (using 95% viewport height/width), utilizing exclusive accordion sections for "System Instructions" and "AI Configuration" to prevent content overflow and improve usability on various screen sizes.
  • Refined Dock Behavior: The invisible hover trigger area at the bottom of the screen was significantly reduced in height (from 25px to 10px). Clicking the dock background now instantly hides the dock and debounces the trigger to prevent accidental re-opening, resulting in a less intrusive and more controlled user interface.
  • Configuration Organization: The AI configuration section now uses nested accordion (<details>) elements to organize the two meta-prompts ("with context" and "without context"), reducing clutter.

Code Structure/Refactoring:

  • Centralized Timers: Various magic numbers for timeouts and delays were consolidated into a new TIMEOUTS configuration object for easier maintenance.
  • Modal Utility: Abstracted the base modal creation logic into a reusable createBaseModal helper function, simplifying the code for all modal windows.
  • Default Profile Management: Added dedicated data management functions (loadDefaultProfile, saveDefaultProfile) and logic within deleteProfile to ensure consistency of the default setting.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址