Code Monkey home page Code Monkey logo

duckduckgpt's Introduction

[Greasy Fork] [License: MIT] [GitHub commits] [CodeFactor grade] [Powered by chatgpt.js] [SonarCloud vulnerabilities] [Mentioned in Awesome] [Built by KudoAI] [jsDelivr stats] [www.duckduckgpt.com]

DuckDuckGPT brings the magic of ChatGPT to DDG (powered by GPT-4o!)

Install this scriptHow to install
Discuss / Review / Contact author

Mobile:

๐Ÿš€ Installation

  1. Install a userscript manager:

  2. Install DuckDuckGPT (will load in userscript manager installed above)

  3. Visit duckduckgo.com, type your search, engage bot!

*Violentmonkey, OrangeMonkey & OrangeMonkey Pro do not support Streaming Mode, so are not recommended

ddgpt-demo

Tampermonkey Users

If you are installing Tampermonkey (v5.2.0+) for the first time from the Chrome Web Store, you must enable Developer Mode for userscripts to function.

To do so, visit chrome://extensions > activate Developer Mode toggle > restart browser



๐Ÿ’ก Note: If you installed Tampermonkey from the add-on store for Firefox, Microsoft Edge or Opera, then Developer Mode is not required.

๐ŸŒ Compatibility

DuckDuckGPT is compatible w/ the following browsers using ScriptCat, Tampermonkey, Violentmonkey*, OrangeMonkey* or OrangeMonkey Pro*.

๐Ÿ–ฅ๏ธ Desktop


Android

*Violentmonkey, OrangeMonkey & OrangeMonkey Pro do not support Streaming Mode, so are not recommended

If you've tested it to work in a browser not listed, simply create a pull request to become a contributor!

๐Ÿ•ต๏ธ Proxy Mode

Proxy API Mode (disabled by default) returns text responses using GPT-4o, without the need for a chatgpt.com account.

When disabled, a ChatGPT account is required to fetch responses. If OpenAI API is acting unreliable, enable Proxy Mode like this:


Install this scriptHow to install
Discuss / Leave a review / More ChatGPT userscripts

๐Ÿ“ฃ Social links




โšก Dependencies

chatgpt.js ยฉ 2023โ€“2024 KudoAI & contributors under the MIT license
generate-ip ยฉ 2024 Adam Lui & contributors under the MIT license
highlight.js ยฉ 2006 Ivan Sagalaev under the BSD 3-Clause license
KaTeX ยฉ 2013โ€“2020 Khan Academy & other contributors under the MIT license
Marked ยฉ 2018+ MarkedJS ยฉ 2011โ€“2018 Christopher Jeffrey under the MIT license

๐Ÿง  Contributors

This app exists thanks to code, translations, issues & ideas from the following contributors:



Consider giving this project a โญ if it helped you!

๐Ÿค– More ChatGPT apps

For even more epic ChatGPT apps, visit: https://github.com/adamlui/chatgpt-apps

๐Ÿ“œ Related scripts

AmazonGPT ย 

Add AI to Amazon shopping.
Install / Readme / Discuss

Generate endless answers from all-knowing ChatGPT (in any language!)
Install / Readme / Discuss

GoogleGPT ย 

Bring the magic of AI to Google Search (powered by Google Gemma + GPT-4o!)
Install / Readme / Discuss

More userscripts / Back to top โ†‘

duckduckgpt's People

Contributors

adamlui avatar dependabot[bot] avatar eltociear avatar imgbotapp avatar kudo-sync-bot avatar yash-singh1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

duckduckgpt's Issues

Some issues

@adamlui I figured since this is private it might be ok to leave feedback here, rather than email.

  1. The problem with calling an XHR from the user script is that is called from the context of the web page is there are cross origin request restrictions, which you are probably already aware of. The reason the GM methods work with user script managers is because those requests are made from the context of a background page which have cross origin access.

If you convert the user script to it's own extension, you won't have these issues if you ensure the requests originate from the background page. However, I wanted to point this out because regardless of the issues you currently see, CORS issues will pop up eventually even if you don't see them right now.

  1. Using localStorage isn't a great approach for sort of the same reason mentioned above. The data will be saved in the context of the page and users often clear their storage regularly, whether purposeful or not. Again, GM methods might use a similar method, but the localStorage they are saving to, is in the context of the background page, which is much harder to clear and usually take a fair deal of user initiative. In short, it is a more reliable storage mechanism than a page's localStorage.

If you convert the user script into extension, again, this won't be an issue and you will have a bunch of storage option.

Apologies if you are already aware of these restrictions, but wanted to make sure you don't dump more time into something that is bound to cause issue.

language of chat-gtp when answering?

Hi,

depending on the searchterm, chatgtp answers in different languages (sometimes even french) ;-D

is there a way to set up a preferred language to have chat-gpt answer the questions/serchterms?

and thank you for that neat idea !

Way to disable sending chatgpt query simultaneously with search query.

I believe not every search query should be sent to chatgpt. Sometimes you don't need it, sometimes you don't want it. But atm there is no way to control it manually.

Feature request:

  • an option like "send gpt query on demand"
  • some UI to "send search query to gpt on demand" for gpt-sidebar

So when a user activates it no queries are sent to gpt but it is still possible to ask gpt after page is loaded.

Add checksumming for external resources so that script works with security setting "Subresource Integrity" set to "Enforce".

You download external resources:

// @require             https://cdn.jsdelivr.net/npm/@kudoai/[email protected]/dist/chatgpt-2.6.4.min.js
// @require             https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js
// @require             https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js
// @require             https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.1.1/crypto-js.min.js

Can you please add security checksumming, so that this script still works with Tampermonkey's security setting "Subresource Integrity" set to "Enforce"?

Regards!

How is asktips work

I sometimes will view asktips when I select some words on a page while sometimes it will not appear. Also, there is a option to disable a website. May I ask where are these data stored because I want to config it.

not on main page duckduckgo

Google Crome 116.0.5845.96 a few days ago was on the main search engine, today disappeared. used through a proxy in Russia

names of saved sessions?

hi,

is it possible to set the name for saved session on the chat-gpt site?
say, the searchterm as the savename?

now, they all lock like:

sessions

which will be very confusing after, say, 40 searchterms in duckduckgo, or say, a week of using it...

or maybe a way to NOT save those sessions?

thank you!

ChatGPT response is not fully displayed

This answer is not shown in its entirety and is even interrupted halfway through the word.

img

I'm using firefox based borowser and Tampermonkey. duckduckgpt version is 2023.5.10

my duckduckgpt is very old if it doesn't know windows 11

I asked a question about an update and it answered me

I'm sorry, but Windows 11 hasn't been released yet. As of my knowledge, KB5031455 is not an update for Windows 11. It may be an update for an older version of Windows or a reference to an unofficial update. I recommend you check the official Microsoft website or help center for further specific information.

the same question made that bingchat obviously has a different answer.

not working

I'm waiting from 5 minutes it just says waiting for chatbot response

No formatting

Please see the following images

DuckDuckGPT

Duclduckguck

chat.openai.com

image

Adding pre - prompt .

Hi,this is my first time posting, I don't known this go to discussion or issue tab?

Can you add Pre-prompt if possible, pre-prompt is A prompt supplement some AI take before answering prompts to improve prompt performance(in case you don't understand)

doesnt work anymore

normal mode never works, says too many requests every time
proxy mode says its waiting for a reply and never replies

it's been like this for weeks now

Use a dedicated DuckDuckGPT conversation

Hi,

First, thanks for developing that user script that indeed enhances our favorite search engine ๐Ÿ‘ ๐Ÿ™

Now, as the subject suggests, it would be great if DuckDuckGPT queries and answers could be gathered into a dedicated conversation instead of proliferating into conversations list of ChatGPT.
Ideally, a toggle or checkbox would allow to explicitly choose to create a new conversation.
Icing on the cake if the name of the conversation can be set!

TY
J

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.