If you're using the browser search field to do your searches, I expect you could simply have Firefox at least can simply set up a custom search using "!g" and using whatever search URL you want. Then Firefox would redirect the search before DDG sees it. Should also be a little faster, since you don't need to go to DDG first.
There may also be some browser addon that can rewrite URLs.