-
Notifications
You must be signed in to change notification settings - Fork 0
fix: update chatgpt turns selectors for v0.3.7 #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,16 @@ | ||
| { | ||
| "version": "0.3.6", | ||
| "lastVerified": "2026-04-11", | ||
| "version": "0.3.7", | ||
| "lastVerified": "2026-05-29", | ||
| "platforms": { | ||
| "chatgpt": { | ||
| "turns": [ | ||
| "article[data-testid^='conversation-turn-']", | ||
| "[data-testid='conversation-turn']", | ||
| "[data-message-author-role]", | ||
| "[data-message-id]" | ||
| "[data-message-id]", | ||
| "div[class*=\"agent-turn\"]", | ||
| "[data-testid*=\"conversation-turn\"]", | ||
| ".group\\/conversation-turn" | ||
|
Comment on lines
+11
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
On ChatGPT pages where v0.3.7 only exposes the new Useful? React with 👍 / 👎. |
||
| ], | ||
| "turnRoleAttr": "data-turn", | ||
| "messageIdAttr": "data-message-id", | ||
|
|
@@ -36,7 +39,8 @@ | |
| "[class*='human-turn']", | ||
| "[class*='HumanTurn']", | ||
| ".font-user-message", | ||
| "[class*=\"user-message\"]" | ||
| "[class*=\"user-message\"]", | ||
| "div[data-is-user=\"true\"]" | ||
| ], | ||
| "assistantTurn": [ | ||
| "[data-testid='assistant-turn']", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These new ChatGPT selectors are only added to
selectors.json, but the actual ChatGPT parser still uses hard-coded selectors incontent.js: it first queriesarticle[data-testid^="conversation-turn-"], then falls back only to[data-testid='conversation-turn'],[data-message-author-role], andmain article(content.jslines 560-574). SinceselectorConfig.platforms.chatgpt.turnsis only used by diagnostics/probing, pages that now expose turns only via.group\/conversation-turn,agent-turn, or the broaderdata-testid*selector will still produce no turns, so this patch does not fix the reported runtime breakage.Useful? React with 👍 / 👎.