Skip to content

Commit 8d48adc

Browse files
committed
Expand Claude support by changing the target URL from /new to the base path / and enable URL override functionality
1 parent 452f18e commit 8d48adc

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎packages/browser/src/content-scripts/send-prompt-content-script/send-prompt-content-script.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const is_copilot = current_url.startsWith(copilot_url)
5454
const github_copilot_url = 'https://github.com/copilot'
5555
const is_github_copilot = current_url.startsWith(github_copilot_url)
5656

57-
const claude_url = 'https://claude.ai/new'
57+
const claude_url = 'https://claude.ai/'
5858
const is_claude = current_url.startsWith(claude_url)
5959

6060
const deepseek_url = 'https://chat.deepseek.com/'

‎packages/browser/src/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"matches": [
2727
"https://aistudio.google.com/prompts/new_chat*",
2828
"https://chatgpt.com/*",
29-
"https://claude.ai/new",
29+
"https://claude.ai/*",
3030
"https://copilot.microsoft.com/",
3131
"https://chat.deepseek.com/",
3232
"https://www.doubao.com/chat/",

‎packages/shared/src/constants/chatbots.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ export const CHATBOTS = {
7474
} as Chatbot,
7575
Claude: {
7676
url: 'https://claude.ai/new',
77+
supports_url_override: true,
78+
url_override_label: 'Project URL',
79+
url_override_disabled_options: ['incognito-chat'],
7780
supported_options: {
7881
'incognito-chat': 'Incognito chat'
7982
},

0 commit comments

Comments
 (0)