Skip to content

Commit

Permalink
Feat: Supporting Claude Share URLs (#277)
Browse files Browse the repository at this point in the history
* feat: support for claude.ai/share

* fix: title selector for Claude Share

* 3.8.7
  • Loading branch information
Hugo-COLLIN authored Feb 25, 2025
1 parent edb0709 commit 2cc361f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "save-my-chatbot",
"version": "3.8.6",
"version": "3.8.7",
"license": "RMD-C 1.1",
"author": "Hugo COLLIN",
"homepage": "https://save.hugocollin.com",
Expand Down
5 changes: 4 additions & 1 deletion public/files/updateNotes.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Update notes
# 3.8.6
# 3.8.7
🚀 Perplexity sources extraction working again!
Perplexity changed its interface again, but the extension is now back on track!

💡 Export shared Claude threads
Support for shared Claude threads (claude.ai/share) is now available!

# 3.8.5
⚙️ Better Options page
The Options page has been redesigned to be more user-friendly and to prepare for future features.
Expand Down
3 changes: 2 additions & 1 deletion src/data/allowedDomains.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"ChatGPTShare": "chatgpt.com/share",
"ChatGPTBots": "chatgpt.com/g",
"ChatGPTSignedOut": "chatgpt.com",
"ClaudeChat": "claude.ai/chat"
"ClaudeChat": "claude.ai/chat",
"ClaudeShare": "claude.ai/share"
}
}
2 changes: 1 addition & 1 deletion src/features/scraper/domains/ClaudeChat.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"domainName": "Claude Chat",
"pageTitle": {
"selector": "[data-testid=\"chat-menu-trigger\"]"
"selector": "[data-testid=\"chat-menu-trigger\"], .tracking-tight.truncate"
},
"contentSelector": "[data-test-render-count]",
"turndown": {
Expand Down
1 change: 1 addition & 0 deletions src/features/scraper/extractPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function extractPage(domain: { name: any; url?: any; }) {
json = require("./domains/ChatGPT.json");
break;
case "ClaudeChat":
case "ClaudeShare":
module = require("./domains/ClaudeChat");
json = require("./domains/ClaudeChat.json");
break;
Expand Down

0 comments on commit 2cc361f

Please sign in to comment.