ChatGPT: Auto-Click Send Button on Enter

Clicks the send button when Enter is pressed

  1. // ==UserScript==
  2. // @name ChatGPT: Auto-Click Send Button on Enter
  3. // @namespace chatgptfixes
  4. // @version 0.2
  5. // @description Clicks the send button when Enter is pressed
  6. // @match https://chat.openai.com/*
  7. // @grant none
  8. // @license The Unlicense
  9. // ==/UserScript==
  10.  
  11. document.addEventListener('keydown', function(event) {
  12. if (event.key === 'Enter' && !event.shiftKey) {
  13. var sendButton = document.querySelector('[data-testid="send-button"]');
  14. if (sendButton) {
  15. sendButton.click();
  16. }
  17. }
  18. });

QingJ © 2025

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