Skip to content

Commit 6df2c74

Browse files
adamluikudo-sync-bot
authored andcommitted
Updated selector for responseDivs init in chatgpt.response.getFromDOM() (#302) ↞ [auto-sync from KudoAI/chatgpt.js]
1 parent 9f566ae commit 6df2c74

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
@@ -1472,7 +1472,7 @@ const chatgpt = { // eslint-disable-line no-redeclare
14721472
},
14731473

14741474
getFromDOM(pos) {
1475-
const responseDivs = document.querySelectorAll('div[data-testid*="conversation-turn"]:nth-child(odd)'),
1475+
const responseDivs = document.querySelectorAll('div[data-message-author-role="assistant"]'),
14761476
strPos = pos.toString().toLowerCase();
14771477
let response = '';
14781478
if (!responseDivs.length) return console.error('No conversation found!');

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.9.23",
5+
"version": "2024.9.25",
66
"author": "chatgpt.js",
77
"icons": {
88
"16": "icons/icon16.png",

0 commit comments

Comments
 (0)