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.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
Hazel Hopps
Instalaciones diarias
0
Instalaciones totales
2
Calificaciones
0 0 0
Versión
1.2
Creado
30/4/2026
Actualizado
2/5/2026
Tamaño
19,2 KB
Licencia
MIT
Funciona en

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.