Duck.ai is one of the few online places to chat with AI privately. Self-hosting your own AI model is a better option, but not everybody has the hardware for it. DuckDuckGo has made deals with the model providers to keep your chats private, so it’s an easy option to recommend.
If you’re like me, you probably clear your cookies a lot (or always browse in incognito). This means that any time you visit Duck.ai, you have to set all your settings again. One solution is to set Duck.ai as an exception to your browser data deletion, but that makes me uneasy. After getting fed up setting my preferred settings each time, I wanted to see if I could automate the process.
Bookmarklets are essentially bookmarks in your bookmarks bar that, when clicked, run your own JavaScript code on whichever page you’re visiting. This was a neat trick that some of my classmates used to edit pages when the Inspect Element was disabled on school computers.
I wrote a short bookmarklet that will automatically set my preferred settings in Duck.ai:
javascript:{
const settings = {
'aiChatPromptSuggestions': '{"hideSuggestions":true}',
'aichatPromoDismissal': '{"promosDismissed":"9999-99-99"}',
'duckaiCanUseApproxLocation': 'false',
'duckaiSidebarCollapsed': 'true',
'duckduckgo_settings': '{"description":"Each key is a setting documented in https://duckduckgo.com/duckduckgo-help-pages/settings/params/","kdcm":"6","kdcs":"0"}',
'isRecentChatsOn': '"0"',
'preferredDuckaiModel': '"6"',
};
let keys = Object.keys(settings);
keys.forEach(key => {
const value = settings[key];
localStorage.setItem(key, value);
});
location.reload();
}
(Steps may vary between browsers)
javascript:
)Debloat Duck.ai
You should now have a distraction free, private chat.
Duck.ai stores its settings in the browser’s “local storage”. If you open the Inspect Element (either by right clicking on the page and clicking “Inspect” or by pressing F12) and navigate to Application > Local Storage > https://duckduckgo.com/
you will see a list of settings and their corresponding values.
By default, these settings are a tad too distracting for my taste. The bookmarklet I made does the following:
duckduckgo_settings
doesn’t actually do much, and the values there are, in fact, not documented on this pageYou can set your preferred settings before running the bookmarklet and edit the bookmarklet code according to your own settings.
The code then iterates through these settings, and sets each one. Then, finally, reloads the page to apply the settings.
This project is far too small to make an entire repository for it, so I will try to just update this post with any new code. For example, duckaiCanUseApproxLocation
is a new setting that was added in the last few days.
I hope everyone enjoys this as much as I did!
Here is a before and after:
Privacy has become a very important issue in modern society, with companies and governments constantly abusing their power, more and more people are waking up to the importance of digital privacy.
In this community everyone is welcome to post links and discuss topics related to privacy.
much thanks to @gary_host_laptop for the logo design :)
What about the third party (you the user), and fourth party (everyone whose creativity was fed into the machines, and everyone who has to accept your LLM generated slop like it’s useful and/or contributing to the conversation)