Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion content.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
"[data-testid='conversation-turn']",
'[data-message-author-role]',
'[data-message-id]',
'.conversation-turn',
'[data-role]',
Comment on lines +31 to +32

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Wire new ChatGPT selectors into turn parsing

When ChatGPT's updated DOM only exposes .conversation-turn/data-role (the scenario these entries target), these additions only affect diagnostics/probes: readChatGPTTurns() and getChatGPTMessageTurns() still hard-code their selector lists, and mapChatGPTTurn() still never reads data-role. As a result, the extension will still miss those turns or classify every turn without data-message-author-role as assistant, so the reported ChatGPT selector breakage remains unfixed. Please add the new selectors and role attribute to the runtime parser, not just the selector registry.

Useful? React with 👍 / 👎.

],
turnRoleAttr: { type: 'attr', names: ['data-message-author-role', 'data-turn'] },
turnRoleAttr: { type: 'attr', names: ['data-message-author-role', 'data-turn', 'data-role'] },
messageIdAttr: { type: 'attr', name: 'data-message-id' },
branchCounter: { type: 'regex', pattern: '^\\d+\\s*/\\s*\\d+$' },
branchPrev: ["[aria-label*='prev' i]", "[aria-label*='previous' i]", "[aria-label*='earlier' i]"],
Expand Down
12 changes: 9 additions & 3 deletions selectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
"article[data-testid^='conversation-turn-']",
"[data-testid='conversation-turn']",
"[data-message-author-role]",
"[data-message-id]"
"[data-message-id]",
".conversation-turn",
"[data-role]"
],
"turnRoleAttr": {
"type": "attr",
"names": ["data-message-author-role", "data-turn"]
"names": [
"data-message-author-role",
"data-turn",
"data-role"
]
},
"messageIdAttr": {
"type": "attr",
Expand Down Expand Up @@ -77,4 +83,4 @@
]
}
}
}
}
Loading