AI Studio Prompter

Maintains constant system instructions across new chats in Google's AI Studio.

当前为 2025-07-28 提交的版本,查看 最新版本

作者
MJE43
评分
0 0 0
版本
0.2
创建于
2025-07-28
更新于
2025-07-28
大小
3.0 KB
许可证
MIT
适用于

What This Script Does

Tired of spoon-feeding Google's AI the same system instructions every time you open a new chat? This script jams your preferred instructions into the box automatically. It saves you from the repetitive, soul-crushing task of copy-pasting your prompt manifesto every damn time.

Set it once and forget it.

HOW TO USE (READ THIS OR IT WON'T FUCKING WORK)

This isn't plug-and-play for complete novices. You need to do ONE thing.

  1. After installing, go to your Tampermonkey Dashboard and click on this script's name to edit it.
  2. Find this section at the top of the code:

    // --- 1. EDIT YOUR SYSTEM INSTRUCTIONS HERE ---
    const systemInstructions = `
    You are a helpful and friendly assistant.
    Your primary goal is to provide accurate and concise information.
    Format all responses using markdown for clarity.
    `.trim();
    // -------------------------------------------
    
  3. REPLACE THE TEXT inside the backticks () with your own based system instructions. Keep thetrim()` part.

  4. Hit File > Save.

If you skip this, you'll just get my generic placeholder text. Don't come crying in the comments if you can't handle editing a variable.

THE CATCH (READ THIS TOO, YOU MUPPET)

As of this version, the script has a known limitation:

YOU STILL HAVE TO MANUALLY CLICK THE "System instructions" BUTTON.

Why? Because the text area is a ghost—it doesn't exist in the page's code until you click the button to summon it. This script is smart enough to see when that box appears and fill it instantly, but it doesn't yet automate the initial click.

Think of it as a semi-automatic rifle, not a fully automatic one. It's one click versus typing a goddamn novel. It's a massive improvement. Cope.

Troubleshooting & Future-Proofing

  • "It's not working!": Did you edit the instructions variable? Did you click the "System instructions" button? If you did both, then Google probably changed their site's code to make your life harder.
  • Why it might break: This script targets the text area using its aria-label="System instructions". This is way more stable than the constantly changing CSS class names, but Google's devs could change it on a whim. If they do, this script will shit the bed until it's updated.

I'll look into automating the button-click reliably in the future. For now, enjoy the reduced RSI.