Google AI Studio Autosave Auto-Enable

自动保持Google AI Studio的Autosave开关处于开启状态

作者
Gcraaty UwU
日安装量
0
总安装量
16
评分
0 0 0
版本
1.0
创建于
2025-06-17
更新于
2025-06-17
大小
2.5 KB
许可证
MIT
适用于

功能说明


您是否在使用 Google AI Studio 时遇到过 "Autosave" (自动保存) 开关在刷新页面或切换模型后自动关闭的问题?这可能会导致您不小心丢失重要的 Prompt 或工作进度。


此脚本旨在解决这个问题。它会持续监控 "Autosave" 开关的状态,一旦检测到它被关闭,就会立即自动将其重新开启。从此,您可以专注于创作,无需再担心忘记手动开启自动保存。

✨ 特性亮点

  • 实时监控:使用 MutationObserver 技术,高效地实时监控开关状态变化,响应迅速且性能开销极低。
  • 双重保障:除了实时监控,还内置了一个定时器作为备用检查机制,确保在任何情况下开关都能保持开启。
  • 智能运行:脚本经过优化,能够可靠地在 Google AI Studio (这类现代单页应用) 加载完成后执行,确保稳定有效。
  • 轻量无感:脚本非常轻量,在后台静默运行,您几乎不会注意到它的存在。


Description


Have you ever noticed that the "Autosave" toggle in Google AI Studio sometimes turns itself off after a page refresh or when switching models? This can be frustrating and may lead to losing your unsaved prompts or progress.


This script solves that problem. It constantly monitors the "Autosave" toggle, and if it ever finds it in the "off" state, it will immediately and automatically turn it back on for you. Now you can focus on your work without worrying about manually re-enabling autosave.

✨ Features

  • Real-time Monitoring: Uses the efficient MutationObserver API to watch for changes to the toggle in real-time, ensuring a fast response with minimal performance impact.
  • Robust Fallback: Includes a periodic timer as a fallback mechanism to guarantee the toggle stays on, even in edge cases.
  • SPA-Friendly: Optimized to run reliably on modern Single-Page Applications (SPAs) like Google AI Studio, ensuring the script activates correctly after the page content loads.
  • Lightweight & Seamless: The script is extremely lightweight and runs silently in the background. You won't even know it's there.


Changelog

  • v1.0 - Initial release.