Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Use GlimmerBlocker keywords in Google Quick Search Box' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Use GlimmerBlocker keywords in Google Quick Search Box
Authored by: unfletch on Oct 05, '09 02:05:42PM
Awesome, thanks! I don't use the Google Search Box, but I made some minor modifications to enable keyword searching from Safari's search box instead:
<?xml version="1.0" encoding="UTF-8"?>
<glimmerblocker-rules>
    <rule priority="2" type="request" host="www.google.com" host-type="is" query="client=safari" query-type="contains">
        <comments><![CDATA[Forward QSB Quick Search keywords]]></comments>
        <request language="js" version="1"><![CDATA[var m = gb.request.urlQuery.match(/&q=([^&]+)/);

if( m ) {
  var newURL ="http://" + m[1].replace( /\+/, "%20" );
  gb.response.sendRedirect( newURL );
} else {
  gb.response.sendText( "GlimmerBlocker recognized a request from Google but search failed to match URL: '" +
  gb.htmlEncode( gb.request.urlQuery ) );
}]]></request>
    </rule>
</glimmerblocker-rules>


[ Reply to This | # ]
Use GlimmerBlocker keywords in Google Quick Search Box
Authored by: Andrew J Freyer on Oct 05, '09 05:21:50PM

I gotta ask though...

Why do you want the keywords in the Search box? Its just an inch from the address bar...

I did this through QSB so that I could launch a query to any site from the keyboard, without launching Safari. Once I'm already in Safari, I'm not sure I see why keyword searching from the Safari search box is any different from searching within the address bar?



[ Reply to This | # ]
Use GlimmerBlocker keywords in Google Quick Search Box
Authored by: unfletch on Oct 05, '09 11:02:51PM

It took me forever to break the habit of typing searches in the location bar after switching from Firefox. I don't think I could go through that again in order to switch back. :)



[ Reply to This | # ]