diff --git a/README.md b/README.md index 367c7a2..2cfe1f9 100644 --- a/README.md +++ b/README.md @@ -699,6 +699,13 @@ ChatGPT 雖然很厲害,但也有它的極限,所以我們要加強自己的 ### 1.2.8 版 送審日期:2024/08/30 -通過日期:2024/09/02 +通過日期:2024/08/31 - 修正送出按鈕,因官方改版造成的問題 + +### 1.2.9 版 + +送審日期:2024/08/31 +通過日期:2024/09/02 + +- 修正 chatGPT 4o 送出按鈕的定位問題 diff --git a/js/content.js b/js/content.js index 99017e6..65a74e4 100644 --- a/js/content.js +++ b/js/content.js @@ -3847,8 +3847,8 @@ function findGroupAndIndex(promptId) { } function sendButton(){ - let sendButton = chatInput()?.parentElement?.querySelector("button:last-child") || - chatInput()?.parentElement?.parentElement?.querySelector("button:last-child") + let sendButton = document.querySelector('button[data-testid="send-button"]') || + document.querySelector("#prompt-textarea")?.parentElement?.parentElement?.querySelectorAll('button')[document.querySelector("#prompt-textarea")?.parentElement?.parentElement?.querySelectorAll('button')?.length-1] if( supportGemini && !supportClaude diff --git a/manifest.json b/manifest.json index 0a5dcf7..098dc44 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "name": "__MSG_extension_name__", "description": "__MSG_extension_description__", "author": "Joe", - "version": "1.2.8", + "version": "1.2.9", "default_locale": "en", "icons": { "16": "images/icon/16.png",