x

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

commit f6cc5c4afc1b777645b7aefb7ebc598ae6b8de37
parent 8ad731b360c4cee5c76ce94d64bff438ecffe4fe
Author: Oliver Lowe <o@olowe.co>
Date:   Tue,  4 Nov 2025 15:34:33 +1100

ws: update user-agent

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

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