Skip to content

Commit 1d4efc8

Browse files
committed
Fix AI Studio response detection by updating the thumb-up button selector
1 parent 1d9260f commit 1d4efc8

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

packages/browser/src/content-scripts/send-prompt-content-script/chatbots/ai-studio.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ export const ai_studio: Chatbot = {
4848
model_selector.click()
4949
await new Promise((r) => requestAnimationFrame(r))
5050
const model_options = Array.from(document.querySelectorAll('mat-option'))
51-
console.log(model_options)
5251
for (const option of model_options) {
5352
const model_name_element = option.querySelector(
5453
'ms-model-option span.model-name'
@@ -336,9 +335,7 @@ export const ai_studio: Chatbot = {
336335
'ms-chat-turn .turn-footer'
337336
)
338337
all_footers.forEach((footer) => {
339-
if (
340-
footer.querySelector('mat-icon')?.textContent?.trim() == 'thumb_up'
341-
) {
338+
if (footer.querySelector('button[iconname="thumb_up"]')) {
342339
show_response_ready_notification({ chatbot_name: 'AI Studio' })
343340
add_buttons({
344341
footer

packages/browser/src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "Code Web Chat Connector",
55
"short_name": "CWC",
66
"description": "Initialize 15+ chatbots and manage websites for context.",
7-
"version": "1.21.0",
7+
"version": "1.22.0",
88
"homepage_url": "https://github.com/robertpiosik/CodeWebChat",
99
"icons": {
1010
"16": "icons/icon-16.png",

0 commit comments

Comments
 (0)