Skip to content

Commit 9f566ae

Browse files
committed
Updated selector for responseDivs init in chatgpt.response.getFromDOM() (#302)
1 parent af6f5c3 commit 9f566ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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!');

0 commit comments

Comments
 (0)