Skip to content

Commit

Permalink
feat: update chatgpt domain and query selector (#20)
Browse files Browse the repository at this point in the history
* feat: update chatgpt domain and query selector

* fix: formatting
  • Loading branch information
rpidanny authored Jun 9, 2024
1 parent 3f96ef3 commit 7e94d26
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions apps/chrome-extension/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -27,7 +27,8 @@
"matches": ["<all_urls>"],
"exclude_matches": [
"https://chat.openai.com/*",
"https://bard.google.com/*"
"https://bard.google.com/*",
"https://chatgpt.com/*"
],
"js": ["defaultContentScript.bundle.js"]
}
Expand All @@ -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"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion libs/llm-prompt-templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"url": "https://github.com/rpidanny/llm-prompt-templates.git",
"directory": "libs/llm-prompt-templates"
}
}
}

0 comments on commit 7e94d26

Please sign in to comment.