ChatGPT Enter Fix

This Chrome extension addresses the issue where ChatGPT sends text even when the Enter key is pressed during Japanese conversion.

// ==UserScript==
// @name       ChatGPT Enter Fix
// @namespace    http://tampermonkey.net/
// @description  This Chrome extension addresses the issue where ChatGPT sends text even when the Enter key is pressed during Japanese conversion.
// @version      1.1
// @author       d-engine
// @match      https://chat.openai.com/chat
// ==/UserScript==
 
(function() {
  const textarea = document.querySelector('textarea[data-id="root"]');
  textarea?.addEventListener(
    "keydown",
    (event) => {
      if (event.key === "Enter" && event.isComposing) {
        event.stopPropagation();
      }
    },
    { capture: true }
  );
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址