From b4181b80166603b9086e4874c0f9d0f8a11772c9 Mon Sep 17 00:00:00 2001 From: Andrew Siah <31041391+andrewsiah@users.noreply.github.com> Date: Mon, 10 Jun 2024 19:58:13 -0400 Subject: [PATCH] ChatGPT UI JS Update Update js button selector to the recent OpenAI update. --- src/providers/openai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/openai.js b/src/providers/openai.js index 4616193..13bd529 100644 --- a/src/providers/openai.js +++ b/src/providers/openai.js @@ -22,7 +22,7 @@ class OpenAI extends Provider { static handleSubmit() { this.getWebview().executeJavaScript(`{ // var btn = document.querySelector("textarea[placeholder*='Send a message']+button"); // this one broke recently .. note that they add another div (for the file upload) in code interpreter mode - var btn = document.querySelector('button[data-testid="send-button"]'); + var btn = document.querySelector('button[data-testid="fruitjuice-send-button"]'); if (btn) { btn.focus(); btn.disabled = false;