Google AI Studio Auto System Instructions

Automatically fill system instructions for new chats in Google AI Studio

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Altron
日安装量
0
总安装量
25
评分
0 1 0
版本
1.0
创建于
2025-04-25
更新于
2025-04-25
大小
4.2 KB
许可证
MIT
适用于

Automatically fills system instructions for new chats in Google AI Studio.

THE INSTRUCTION STRING NEEDS TO BE CHANGED WITHIN THE SCRIPT.

Lifehack: ALWAYS check ANY user scripts you install for malware. Just paste the code into an AI chat and ask.

For your consideration, this script was made entirely by AI. Prompt to one-shot it: Please create a userscript that would automatically fill "custom instructions" (the system prompt) for any new chats in Google AI Studio. System instructions text area in current version of AI studio UI is hidden by default (and cannot be selected), to make it visible, you have to click document.querySelector('div.toolbar-container > div:nth-child(2) > button'), then wait for document.querySelector('textarea[aria-label="System instructions"]') to become selectable, select, then change its value, then hide it again by clicking the same button. The system prompt should only be filled when 1. it is empty; 2. a NEW chat has been opened (we need to remember old chat ids with localstorage). When a new chat opens, Studio updates the page URL to https://aistudio.google.com/app/prompts/[new chat id] Take into account that not all AI models support custom instructions, so sometimes we will fail to do this. It shouldn't break the script.