DeepSeek System Prompt

Adds an inline system prompt editor & toggle to DeepSeek chat. The prompt is injected as a system message before every new chat.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey, Greasemonkey или Violentmonkey.

Для установки этого скрипта вам необходимо установить расширение, такое как Tampermonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Violentmonkey.

Чтобы установить этот скрипт, вы сначала должны установить расширение браузера, например Tampermonkey или Userscripts.

Чтобы установить этот скрипт, сначала вы должны установить расширение браузера, например Tampermonkey.

Чтобы установить этот скрипт, вы должны установить расширение — менеджер скриптов.

(у меня уже есть менеджер скриптов, дайте мне установить скрипт!)

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение браузера, например Stylus.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

Чтобы установить этот стиль, сначала вы должны установить расширение — менеджер стилей.

(у меня уже есть менеджер стилей, дайте мне установить скрипт!)

Автор
Hazel Hopps
Установок в день
1
Всего установок
2
Оценки
0 0 0
Версия
1.2
Создано
30.04.2026
Обновлено
02.05.2026
Размер
19,2 КБ
Лицензия
MIT
Работает на

Adds a System Prompt button directly into the DeepSeek chat interface — right next to the DeepThink and Search toggles — giving you full control over model behavior without touching the API.

✨ Features

  • Inline UI — A "System" button appears in the chat toolbar. Click it to open a floating editor panel. No context menus, no prompt() dialogs.
  • Persistent storage — Your system prompt and enabled/disabled state are saved across sessions via GM_getValue / GM_setValue.
  • One-click toggle — Enable or disable the system prompt with a switch. The toolbar button shows an active indicator dot when a prompt is set and enabled.
  • Keyboard shortcutsCtrl+Enter to save, Escape to close the panel.
  • Click-outside to dismiss — Click anywhere outside the panel to close it.

🔧 How It Works

The script intercepts outgoing API requests at the network level:

  1. fetch — Patches window.fetch to intercept chat completion requests.
  2. XMLHttpRequest — Patches XHR.send for legacy request paths.
  3. WebSocket — Wraps outgoing send calls to inject the prompt into real-time messages.

When a matching API request is detected, the script prepends a { role: "system", content: "..." } message to the messages[] array — the standard way system prompts work in the OpenAI/DeepSeek API.

No data leaves your browser. The script makes zero external network requests. Everything runs locally in your userscript manager.

📸 Usage

  1. Install the script
  2. Go to chat.deepseek.com
  3. Click the System button next to DeepThink / Search
  4. Type your system prompt (e.g. "You are a senior software engineer. Always provide code examples.")
  5. Toggle Enabled, then click Save
  6. Start a new chat — your system prompt is automatically included

⚠️ Limitations

  • Only works on the browser client at chat.deepseek.com — not the API or mobile app.
  • Cross-origin iframes cannot be patched due to browser security.
  • DeepSeek could patch this out in a future update if they choose to, though the model itself is open-source and system prompts are a standard API feature.

🙏 Credits

Inspired by DeepSeek System Prompt Injector by NoahTheGinger — which uses a similar network interception approach but with context-menu-based UI. This script reimplements the concept with a fully inline editor panel.