🏠 返回首頁 

Greasy Fork is available in English.

ChatGPT防手误发送-Ctrl+Enter发送

当且仅当Ctrl+Enter时才发送问题


Installer dette script?
// ==UserScript==
// @name         ChatGPT防手误发送-Ctrl+Enter发送
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  当且仅当Ctrl+Enter时才发送问题
// @author       tutu辣么可#(GreasyFork)
// @author       IcedWatermelonJuice(GitHub)
// @match        *://chat.openai.com
// @match        *://chat.openai.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=openai.com
// @grant        none
// @license      MIT
// ==/UserScript==
(function() {
'use strict';
// Your code here...
const INPUT_BOX_ID = 'prompt-textarea';
document.addEventListener('keydown', (e) => {
if (e.target.id !== INPUT_BOX_ID || e.keyCode !== 13 || e.ctrlKey) {
return;
}
e.stopPropagation();
}, true);
})();