Skip to content

Commit

Permalink
Added DuckDuckGo AI Chat #969
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Nov 2, 2024
1 parent ee1cb15 commit 85dd515
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/assets/images/chatGpt-icon-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/chatGpt-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/javascripts/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@ function rewrite(url, originUrl, frontend, randomInstance) {
const accountReg = /^\/([^\/]+)\/?$/.exec(url.pathname)
if (accountReg) return `${randomInstance}/account${url.pathname}${url.search}`

case "duckDuckGoAiChat":
return "https://duckduckgo.com/?q=DuckDuckGo+AI+Chat&ia=chat&duckai=1"

case "piped":
case "pipedMaterial":
case "cloudtube":
Expand Down
19 changes: 19 additions & 0 deletions src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,25 @@
"embeddable": true,
"url": "https://twitter.com"
},
"chatGpt": {
"frontends": {
"duckDuckGoAiChat": {
"name": "DuckDuckGo AI Chat",
"instanceList": false,
"url": "https://duckduckgo.com/duckduckgo-help-pages/aichat/"
}
},
"targets": ["^https?:\\/{2}chatgpt\\.com"],
"name": "ChatGPT",
"options": {
"enabled": false,
"unsupportedUrls": "bypass",
"frontend": "duckDuckGoAiChat",
"redirectOnlyInIncognito": false
},
"imageType": "svgMono",
"url": "https://chatgpt.com/"
},
"bluesky": {
"frontends": {
"skyview": {
Expand Down

0 comments on commit 85dd515

Please sign in to comment.