Wednesday, November 28, 2018

Search OCA with DuckDuckGo

The search box in the sidebar now uses DuckDuckGo, a search engine that does not track its user. Take that, Google.

It’s easy to make a DuckDuckGo search box for a website. Here’s a page with the necessary code. Just fill in the blanks. And here’s a page that offers a different approach. I’m not sure how I arrived at my version, but here it is:

<form method="get" action="http://duckduckgo.com/" target="_blank">
<input type="text" placeholder="DuckDuckGo" name="q" maxlength="255" />
<input type="submit" value="Go" />
<input type="hidden" name="sites" value="mleddy.blogspot.com" />
<input style="visibility:hidden" type="radio" name="sitesearch" value="mleddy.blogspot.com" checked="checked" />
</form>
The search box in the “navbar,” the navigation bar found at the top of some Blogger blogs, seems beyond changing — it’s Google or nothing. So I turned off the navbar, which doesn’t allow for much navving anyway. Unlike the navbar’s Google search, the DuckDuckGo search in the sidebar searches all OCA content, posts and comments.

comments: 2

Anonymous said...

Welcome to the non-Google search world! I switched to DuckDuckGo for Safari browsing and need to do the same for Firefox.

Although a little different in lay-out I do like it better.

Kirsten

Michael Leddy said...

I’ve made DuckDuckGo my default search engine on all devices. I like it better too. And I like the duck.