DeepSeek Auto-Focus

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

目前為 2025-02-18 提交的版本,檢視 最新版本

// ==UserScript==
// @name         DeepSeek Auto-Focus
// @namespace    https://greasyfork.org/users/your_username_here
// @version      1.2
// @description  Automatically focuses the chat input on chat.deepseek.com when you type
// @match        https://chat.deepseek.com/*
// @grant        none
// ==/UserScript==

document.addEventListener('keydown', e => {
    const textarea = document.getElementById('chat-input');
    if (!textarea || document.activeElement === textarea || e.ctrlKey || e.metaKey) return;

    e.preventDefault();
    textarea.focus();
    textarea.value += e.key; // Append the first typed character
});