#!/bin/sh

function join_by { local IFS="$1"; shift; echo "$*"; }

if [ "$#" -eq 0 ] ; then
  echo "WARNING! All your communication will bypass VPN and firewall!"
  su no-fw -c 'lynx http://detectportal.firefox.com'
else
  lynx "https://duckduckgo.com/?q=$(join_by '+' $@ )&t=ffab"
fi