Skip to content

Commit

Permalink
修正 chatGPT 4o 送出按鈕的定位問題
Browse files Browse the repository at this point in the history
  • Loading branch information
joe committed Aug 31, 2024
1 parent 99264dc commit de6e17c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 送出按鈕的定位問題
4 changes: 2 additions & 2 deletions js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit de6e17c

Please sign in to comment.