3 15cd1919 2024-11-10 o firefox="Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0"
6 d195ecc2 2024-09-16 o /duckduckgo.com\/y.js/ { next } # skip ads
7 d195ecc2 2024-09-16 o /Sponsored link/ { next } # skip ads
10 d195ecc2 2024-09-16 o link = substr($3, index($3, "\""), length($3))
11 d195ecc2 2024-09-16 o link = substr(link, 2, length(link)-2)
13 d195ecc2 2024-09-16 o title = substr($0, index($0, ">")+1, length)
14 d195ecc2 2024-09-16 o title = substr(title, 1, index(title, "<")-1)
16 d195ecc2 2024-09-16 o print "\t" title
20 15cd1919 2024-11-10 o curl -s --data-urlencode "q=$*" -H "User-Agent: $firefox" https://lite.duckduckgo.com/lite/ | awk "$prog"