diff --git a/js/content.js b/js/content.js index ba35052..c4c60f2 100644 --- a/js/content.js +++ b/js/content.js @@ -3708,10 +3708,8 @@ function findGroupAndIndex(promptId) { } }); - const chatInput = document.querySelector("form").querySelector("textarea"); - const sendButton = document - .querySelector("form") - .querySelector(".absolute.p-1.rounded-md.text-gray-500.right-1"); + const chatInput = document.querySelector('#prompt-textarea'); + const sendButton = chatInput.parentElement.querySelector("button:last-child") || chatInput.nextElementSibling; if (!chatInput) { alert(i18n("alert_not_found_input")); diff --git a/manifest.json b/manifest.json index 073cbf4..1544dbe 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "__MSG_extension_name__", "description": "__MSG_extension_description__", "author": "Joe", - "version": "1.0.1", + "version": "1.0.2", "default_locale": "en", "icons": { "16": "images/icon/16.png",