x

Programs, configuration and documentation that don't fit anywhere else
Log | Files | Refs | README | LICENSE

commit 15cd19198260b38236da4164929010671f02e626
parent 1ea57a11f46b6fb2b3f450206f6332d331cfead4
Author: Oliver Lowe <o@olowe.co>
Date:   Mon, 11 Nov 2024 09:42:48 +1100

ws: set user-agent to newer firefox

We were getting flagged as a bot :(

Diffstat:
Mbin/ws | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/ws b/bin/ws @@ -1,6 +1,6 @@ #!/bin/sh -firefox="Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0" +firefox="Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0" prog=' /duckduckgo.com\/y.js/ { next } # skip ads @@ -17,4 +17,4 @@ prog=' } ' -curl -s --data-urlencode "q=$@" -H "User-Agent: $firefox" https://lite.duckduckgo.com/lite/ | awk "$prog" +curl -s --data-urlencode "q=$*" -H "User-Agent: $firefox" https://lite.duckduckgo.com/lite/ | awk "$prog"