I am really interested in this, any tips for automation on chrome so I can use the omni bar and don't have to type !g ?
So if I had a form on "example.com" which had an action of "/do-search", and finally, a text input with a name of "query", then the URL it will add is:
http://example.com/do-search?query=%s
Saves you having to inspect the URL yourself to figure out the parameters.
Then you can go to the settings page nivla mentioned and make it the default search engine, so that any non-url's you enter into the omnibox are redirected to the %s in the URL above.
Scroll to the bottom and add "DDGooG" as Name, duckduckgo.com as the keyword and https://duckduckgo.com/?q=!g%20%s as the URL.
Hover over the URL and select "Make Default".
You are all set :)
You can just use https://encrypted.google.com/search?hl=en&q=%s directly :)