DeepSeek Auto-Focus

Automatically focuses the chat input on chat.deepseek.com when you type

Verze ze dne 18. 02. 2025. Zobrazit nejnovější verzi.

Autor
Cochinver
Hodnocení
0 0 0
Verze
1.0
Vytvořeno
18. 02. 2025
Aktualizováno
18. 02. 2025
Size
1,3 KB
Licence
neuvedeno
Spustit na

deepseek auto focus when you type

ai:

This script listens for keydown events on pages under https://chat.deepseek.com/*. When you press a single alphanumeric character while not focused on an input or textarea, it automatically moves the focus to the chat input field (with the ID chat-input), inserts the character at the current cursor position, and dispatches an input event. This makes starting a chat more seamless by eliminating the need to manually click into the chat input before typing.

Description

Automatically focuses DeepSeek's chat input field and inserts typed characters at cursor position when typing anywhere on the page.

Features

  • Focuses input when typing alphanumeric characters
  • Inserts text at current cursor position
  • Ignores modifier key combinations (Ctrl/Cmd)
  • Excludes existing text inputs/textarea elements

Usage

Just start typing anywhere on the page when:

  1. Chat input exists
  2. No other text field is focused
  3. Not holding Ctrl/Cmd keys

Compatibility

Violentmonkey/Greasemonkey userscript for modern browsers