Skip to content

Commit b1ae687

Browse files
committed
Narrowed chatgpt.getContinueButton() selector to avoid Preview button in GPT editor ↞ [auto-sync from KudoAI/chatgpt.js]
1 parent f6b68da commit b1ae687

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

starters/chrome/extension/lib/chatgpt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ const chatgpt = { // eslint-disable-line no-redeclare
883883
},
884884

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

starters/chrome/extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "ChatGPT Extension",
44
"description": "A Chrome template to start using chatgpt.js like a boss!",
5-
"version": "2024.10.3",
5+
"version": "2024.10.11",
66
"author": "chatgpt.js",
77
"icons": {
88
"16": "icons/icon16.png",

0 commit comments

Comments
 (0)