Skip to content

Commit

Permalink
Narrowed chatgpt.getContinueButton() selector to avoid Preview butt…
Browse files Browse the repository at this point in the history
…on in GPT editor
  • Loading branch information
adamlui committed Oct 12, 2024
1 parent fc89472 commit f6b68da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chatgpt.js
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ const chatgpt = { // eslint-disable-line no-redeclare
},

getChatInput() { return chatgpt.getChatBox().firstChild.innerText; },
getContinueButton() { return document.querySelector('button:has([d^="M4.47189"])'); },
getContinueButton() { return document.querySelector('button.btn:has([d^="M4.47189"])'); },
getFooterDiv() { return chatgpt.footer.get(); },
getHeaderDiv() { return chatgpt.header.get(); },
getLastPrompt() { return chatgpt.getChatData('active', 'msg', 'user', 'latest'); },
Expand Down

0 comments on commit f6b68da

Please sign in to comment.