// ==UserScript== // @name chagpt - safari 中文输入法回车键修复 // @description ChatGPT 网页版在使用自带中文输入法输入英文时,按下回车键并不会选择候选的英文词汇,而是直接发送消息。根据这个[PR](https://github.com/lencx/ChatGPT/pull/389),修复了这个问题,使中文输入法下按下回车键会选择候选词汇,再按回车键才会发送消息。 // @match https://chat.openai.com/* // @version 1.0 // @license MIT // @namespace https://greasyfork.org/users/1124224 // @downloadURL none // ==/UserScript== document.addEventListener("keydown", (e) => { if(e.keyCode == 229) e.stopPropagation(); }, true)