[Hpr] Boo, Hiss, a google search on top of the HPR webpage!

Ken Fallon ken.fallon at gmail.com
Tue Mar 26 05:04:53 PDT 2013


Date: Tue, 26 Mar 2013 07:05:00 -0400
From: dg <dg at deepgeek.us>
To: hpr at hackerpublicradio.org
Subject: [Hpr] Boo, Hiss, a google search on top of the HPR webpage!


I just glanced at the HPR webpage...

As a self-identified hacker and google refugee, and after google
blocked adblockerplus from their android phone store due to their
allegiance to corporate profits; I had to say "boo, hiss" for having a
google search on the hpr webpage!

Surely a dialog box can be formed that returns an url string that will
direct the user to a site:hackerpublicradio.org search at duck duck go!

Really, the difference between
http://www.google.com/search?sitesearch=http%3A%2F%2Fhackerpublicradio.org%2F&q=klaatu&sa=Search+HPR+with+Google

and 

https://duckduckgo.com/?q=klaatu+site%3Ahttp%3A%2F%2Fhackerpublicradio.org%2F&t=debian

can't "be that difficult a hack."

Remember, google likes to talk about "not being evil," but talk is
cheap now, isn't it!

[rant mode off]
---
DeepGeek

Begin forwarded message:

Date: Tue, 26 Mar 2013 12:41:46 +0100
From: Ken Fallon <ken.fallon at gmail.com>
To: dg <dg at deepgeek.us>
Cc: hpr at hackerpublicradio.org
Subject: Re: [Hpr] Boo, Hiss, a google search on top of the HPR webpage!


OK here's the Google code - a simple form"

<form name="google-search" method="get"
action="http://www.google.com/search"> <input type="hidden"
name="sitesearch" value="http://hackerpublicradio.org/" /> <input
name="q" type="text" /> <input type="submit" name="sa" value="Search
HPR with Google" /> </form>

This is the duck duck go - which doesn't support "site:"

<form name="duckduckgo-search" method="get"
action="http://duckduckgo.com/"> <input type="hidden" name="site"
value="http://hackerpublicradio.org/" /> <input name="q" type="text" />
  <input type="submit" name="Search" value="Search HPR with
DuckDuckGo" /> </form>

So for now I added the iframe
<iframe
src="http://duckduckgo.com/search.html?site=hackerpublicradio.org&prefill=Search
DuckDuckGo"
style="overflow:hidden;margin:0;padding:0;width:408px;height:40px;"
frameborder="0"></iframe>

Which is horrible.

@Deepgeek Send me the correct "form" code that supports "site:"

Ken.






More information about the Hpr mailing list