From dec2d2e0cd69978561437f750ecf6e765a0b6808 Mon Sep 17 00:00:00 2001 From: "Edgar Jr. San Martin" Date: Sat, 19 Feb 2022 20:01:09 -0500 Subject: [PATCH] Updated user_agent as quick fix for current implementation --- tuxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuxi b/tuxi index 0078bd5..dbce911 100755 --- a/tuxi +++ b/tuxi @@ -883,7 +883,7 @@ top_links() { # fetch response from Google via cURL (-G: get, -s: silent) unless -c flag is passed # in which case we use the most recent cached html from $XDG_CACHE_HOME/tuxi -user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0" +user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.15.2 Chrome/87.0.4280.144 Safari/537.36" google_url="https://www.google.com/search?hl="${LANGUAGE:="${LANG:=en_US}"}"" $use_cache && google_html="$(cat $XDG_CACHE_HOME/tuxi/$(ls -1t $XDG_CACHE_HOME/tuxi | head -n1))" if [ -z "$google_html" ]; then