Retaining Epiphany’s overloaded address bar while using Privoxy

As per the comment in Privoxy’s ticket #2530592, I’ve set up a Privoxy rule to interpret dot-less domains as search terms. This emulates the search function built into Ephy, which breaks with Privoxy’s DNS error messages. In /etc/privoxy/user.action I now have:

# Redirect dotless hostnames as search parameters to Scroogle

{+redirect{s@^http://([^\\.]*)/$@https://ssl.scroogle.org/cgi-bin/nbbw.cgi?Gw=$1@}}

3 Replies to “Retaining Epiphany’s overloaded address bar while using Privoxy”

  1. A fix for Scandinavian letters (note the single dot on the last line):

    # Escape dotless hostnames with percent-encoding
    {+redirect{s@å$@%C3%A5@}}
    {+redirect{s@Å$@%C3%85@}}
    {+redirect{s@ä$@%C3%A4@}}
    {+redirect{s@Ä$@%C3%84@}}
    {+redirect{s@ö$@%C3%B6@}}
    {+redirect{s@ö$@%C3%96@}}
    .

  2. OK, scratch that. Multi-word input works without Privoxy interfering, whereas single-word input doesn’t, and can’t be percent-encoded, apparently because the config syntax breaks Perl’s \×{xxxx} UNICODE syntax (brackets trigger an ‘invalid line’ error from Privoxy).

Comments are closed.