Skip to content

Commit 4708c28

Browse files
author
Maxim Fomin
committed
Claude fix
1 parent 331ee3c commit 4708c28

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

utils.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,13 @@ class InjectionTargetsOnWebsite {
198198
'div.flex.flex-col.bg-bg-000.rounded-2xl',
199199
'div.flex.flex-col.bg-bg-000.gap-1\\.5'
200200
],
201-
sendButtons: ['button[aria-label="Send Message"]'],
201+
sendButtons: [
202+
'button.bg-accent-main-000.text-oncolor-100', // most specific: key classes (language-independent)
203+
'button[type="button"].bg-accent-main-000', // fallback: type and main class
204+
'button[type="button"]', // generic fallback
205+
'button[type="button"][aria-label="Send message"].bg-accent-main-000.text-oncolor-100', // fallback: type, aria-label, and key classes (language-dependent)
206+
'button[type="button"][aria-label="Send message"]', // fallback: type and aria-label (language-dependent)
207+
],
202208
editors: ['div.ProseMirror[contenteditable="true"]'],
203209
buttonsContainerId: 'claude-custom-buttons-container'
204210
},

0 commit comments

Comments
 (0)