searx (255B)
1 #!/bin/sh 2 3 SEARX_URI="$(searx-instances-random)" 4 case "${SEARX_URI}" in 5 */) 6 ;; 7 *) 8 SEARX_URI="${SEARX_URI}/" 9 ;; 10 esac 11 12 query="$@" 13 [ -n "$query" ] && query="?q=$(urlquote "$query")" 14 15 printf "%s%s\n" "${SEARX_URI}" "${query}" 16 plumb "${SEARX_URI}${query}" 17