From 016779faf85d2e5885abe52c5da85a6e9d736eca Mon Sep 17 00:00:00 2001 From: mic Date: Fri, 17 May 2024 19:02:47 +0200 Subject: [PATCH] polished send button query --- js/mzta-chatgpt.js | 1 - 1 file changed, 1 deletion(-) diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 7c8342b1..bf54f40c 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -26,7 +26,6 @@ let force_go = false; async function chatgpt_sendMsg(msg, method ='') { const textArea = document.querySelector('form textarea'), sendButton = document.querySelector('path[d*="M15.192 8.906a1.143"]')?.parentNode.parentNode // post-GPT-4o; - || document.querySelector('form button[class*="main-surface-secondary"]') // pre-GPT-4o || document.querySelector('[data-testid="send-button"]'); // pre-GPT-4o textArea.value = msg; textArea.dispatchEvent(new Event('input', { bubbles: true })); // enable send button