From b1cd66f985ebd0c0c738f7ce0c0d5ffb493ca97a Mon Sep 17 00:00:00 2001 From: rpidanny Date: Sun, 9 Jun 2024 15:20:45 +0200 Subject: [PATCH] feat: update chatgpt domain and query selector --- apps/chrome-extension/src/manifest.json | 7 ++++--- .../src/pages/Content/llms/chatgpt/chatgpt.dom.ts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/chrome-extension/src/manifest.json b/apps/chrome-extension/src/manifest.json index bd6c1fb..d85b890 100755 --- a/apps/chrome-extension/src/manifest.json +++ b/apps/chrome-extension/src/manifest.json @@ -12,7 +12,7 @@ }, "content_scripts": [ { - "matches": ["https://chat.openai.com/*"], + "matches": ["https://chat.openai.com/*", "https://chatgpt.com/*"], "js": ["chatGPTContentScript.bundle.js"], "css": ["chatgpt.content.styles.css"], "run_at": "document_end" @@ -27,7 +27,8 @@ "matches": [""], "exclude_matches": [ "https://chat.openai.com/*", - "https://bard.google.com/*" + "https://bard.google.com/*", + "https://chatgpt.com/*" ], "js": ["defaultContentScript.bundle.js"] } @@ -43,7 +44,7 @@ }, { "resources": ["chatgpt.content.styles.css"], - "matches": ["https://chat.openai.com/*"] + "matches": ["https://chat.openai.com/*", "https://chatgpt.com/*"] }, { "resources": ["bard.content.styles.css"], diff --git a/apps/chrome-extension/src/pages/Content/llms/chatgpt/chatgpt.dom.ts b/apps/chrome-extension/src/pages/Content/llms/chatgpt/chatgpt.dom.ts index 3bcb41d..13e518c 100644 --- a/apps/chrome-extension/src/pages/Content/llms/chatgpt/chatgpt.dom.ts +++ b/apps/chrome-extension/src/pages/Content/llms/chatgpt/chatgpt.dom.ts @@ -4,7 +4,7 @@ import { LLMDom } from '../llm.dom'; export class ChatGPTDom extends LLMDom { protected name = 'ChatGPT'; - protected textAreaSelector = 'div.relative > textarea'; + protected textAreaSelector = 'textarea#prompt-textarea'; protected usePrompt(prompt: IPrompt) { const textArea = this.getTextArea();