diff options
Diffstat (limited to '.w3m/cgi-bin/omnibar_veronica2.cgi')
-rwxr-xr-x | .w3m/cgi-bin/omnibar_veronica2.cgi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.w3m/cgi-bin/omnibar_veronica2.cgi b/.w3m/cgi-bin/omnibar_veronica2.cgi new file mode 100755 index 0000000..5e450bd --- /dev/null +++ b/.w3m/cgi-bin/omnibar_veronica2.cgi @@ -0,0 +1,8 @@ +#!/usr/bin/env sh +GOPHER_PROTOCOL_ENABLE=$(w3m -version | grep -c "gopher") +echo "w3m-control: BACK" +if [ "$GOPHER_PROTOCOL_ENABLE" = 0 ] ; then + echo "w3m-control: TAB_GOTO https://gopher.floodgap.com/gopher/gw?ss=gopher%3A%2F%2Fgopher.floodgap.com%2F7%2Fv2%2Fvs&sq=$QUERY_STRING" +else + echo "w3m-control: TAB_GOTO gopher://gopher.floodgap.com/7/v2/vs?$QUERY_STRING" +fi |