Greasy Fork镜像 is available in English.

ChatGPT: Auto-Click Send Button on Enter

Clicks the send button when Enter is pressed

// ==UserScript==
// @name         ChatGPT: Auto-Click Send Button on Enter
// @namespace    chatgptfixes
// @version      0.2
// @description  Clicks the send button when Enter is pressed
// @match        https://chat.openai.com/*
// @grant        none
// @license      The Unlicense
// ==/UserScript==

document.addEventListener('keydown', function(event) {
    if (event.key === 'Enter' && !event.shiftKey) {
        var sendButton = document.querySelector('[data-testid="send-button"]');
        if (sendButton) {
            sendButton.click();
        }
    }
});
长期地址
遇到问题?请前往 GitHub 提 Issues。