Use customized URL search in Firefox search bar

[Old Forum guest] anonymous
Created: 7 years and 6 months ago
Hey,

I discovered ddg a few days ago and it seems really cool. For now, I swichted from Google to ddg to make a full test. Anyway...

As I daily clear all my cookies, I wanted to use the URL customization. I guess my question is more Firefox rather than Duck related : is it possible to add ddg customized by URL in the Firefox search bar ?

Thx in advance !

This forum has been archived

Thank you all for the many comments, questions and suggestions. Particular thanks go to user x.15a2 for constantly monitoring, replying and helping so many users here. To continue these discussions, please head over to the DuckDuckGo subreddit.


yegg
You can add it to the address bar by using the URL params (http://duckduckgo.com/params.html) and then going to about:config and putting it in the keyword.url place.

For the search bar, it is a bit trickier. We need to do something where we generate it on the fly because Firefox does not let you edit them. So currently the only way is to make a plugin file (XML) and then add it. You could modify ours though.
posted by yegg Staff7 years and 6 months ago Link
anonymous

  For the search bar, it is a bit trickier. We need to do something where we generate it on the fly because Firefox does not let you edit them. So currently the only way is to make a plugin file (XML) and then add it. You could modify ours though.
Exactly what I needed ! Thx man, it's great !


So for those who are interested, I edited the DuckDuckGo plugin file (located in C:\Users\[user]\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxx.default\searchplugins for win7). Line to edit is :
  1. <os:Url type="text/html" method="GET" template="https://duckduckgo.com/?q={searchTerms}">
Insert the URL generated from the settings page ( see bottom of http://duckduckgo.com/settings.html page ) or see the URL parameters page ( http://duckduckgo.com/params.html ) in the template value (of course, let ?q={searchTerms} as it is). Trick is for every "&" character, you need to replace it by "&amp;" due to XML.

You should then have something like this :
  1. <os:Url type="text/html" method="GET" template="https://duckduckgo.com/?ke=-1&amp;kj=d&amp;kk=s&amp;kr=-1&amp;ks=s&amp;kx=o&amp;q={searchTerms}">
Finally, ddg rocks in search bar without cookies
posted by [Old Forum guest] • 7 years and 6 months ago Link
eviltoast
Thank you, this is exactly what I was looking for!
posted by eviltoast 4 years and 1 month ago Link
eviltoast
edit: I seem to be completely lost in this. My adres bar search is now broken ( only puts "www.{search} .com"), perhaps this might be to some changes that have occurred in the past 3 years.
 
Could you please post:
1) what line should I edit in /searchplugins/duckduckgo.xml

2) what line should I paste from my ddg settings page (https://i.imgur.com/KDyKr94.png)
posted by eviltoast 4 years and 1 month ago Link
anonymous
Near the end of the file where is <Url type="text/html" method="GET" template="https://duckduckgo.com/">
one line below it, add <Param name="name" value="value"/>
replacing "name" and "value" with the right params.
Eg. in your case
<Param name="kj" value="693E68"/>
<Param name="kf" value="fw"/>
...
and so on, one line for each param. Look at "Settings in JSON" in your image for all your params.
Remember to make a backup of your xml file before playing with it. :)
posted by <hidden> • 4 years and 1 month ago Link
eviltoast
Thank you! You're a lifesaver.
though I wish there was an easier way to integrate customized URL search without the use of cookies.
posted by eviltoast 4 years and 1 month ago Link
eviltoast
Can anyone please upload their duckduckgo.xml because I accidently broke mine
posted by eviltoast 3 years and 11 months ago Link
eviltoast
Sorry to bump this thread again but with recent changes there is no keyword.url in about:config anymore, so there's no \searchplugins in the profil folder and I can't seem to find where to add customized search url from here https://i.imgur.com/KDyKr94.png
posted by eviltoast 3 years and 3 months ago Link