Currently, it's still possible to search www for URLs^1 via Google without "AI" suggestions/summaries, Javascript, cookies or ads HTTPS is optional For example, something like read x xx=$(echo $x|sed 's/ */ /g;s/ /+/g') printf 'GET %s HTTP/1.1\r\nHost: %s\r\nConnection: %s\r\n\r\n' \ '/search?hl=&source=&biw=&bih=&q='${xx}'&btnI=&iflsig=&gbv=' \ 'www.google.com' \ 'close' \ |bssl client -connect 142.251.156.119:443 \ |sed -n ' /^<HTML>/p /^<TITLE>/s/302 Moved//p s/<A HREF=\"https:\/\/www.google.com\/url?q=//; s/<A HREF=\"http:\/\/www.google.com\/url?q=//; s/\">here<\/A>.// /^https:\//{s/^/1. <a href="/p;} /^1. <a href="https:\//s/.\{12\}/ ">/p /^">https:\/.*/s//<\/a>/p /^http:\//{s/^/1. <a href="/p;} /^1. <a href="http:\//s/.\{10\}/ ">/p /^">http:\/.*/s//<\/a>/p /^<\/BODY>/p ' #example usage: #echo the best search engine|$0 > 1.htm #firefox ./1.htm The "catch" is that there's only one search result, "one blue link" instead of ten Given the ever-increasing emphasis on the so-called "top result" in www search this may be acceptable for many users Also, currently we can still retrieve some "auto completion" results without "AI" suggestions, Javascript, cookies or ads HTTPS is optional For example, something like read x xx=$(echo $x|sed 's/ */ /g;s/ /+/g') printf 'GET %s HTTP/1.0\r\nHost: %s\r\n\r\n' \ '/complete/search?client=heirloom-hp&hl=en&gs_rn=35&gs_ri=heirloom-hp&cp=3&gs_id=7&q='${xx}'&gs_gbg=' \ 'clients1.google.com' \ |bssl client -connect 192.178.155.102:443 \ |sed -n '/window.google.ac.h/{s/\\u003cb\\u003e//g;s/\\u003c\\\/b\\u003e//g;/'"$x"'/p;}' \ |cut -d\" -f4,6,8,10,12,14,16,18,20,22 \ |tr \" '\n' #usage: echo query|$0 These options may soon disappear, like the www cache and other www search options before them. But "ifl" has been around since the early 90's, just look at the old school HTML 1. Not to be confused with searching for "answers" to questions
For years and years I have used a local TLS forward proxy that rewrites response bodies using Lua Here is an excerpt from rewrite.lua that reformats the IFL page from a 302 redirect to a "one blue link" SERP if host=="www.google.com" then applet:set_status(200) body = string.gsub(body,"302 Moved","") body = string.gsub(body,"The document has moved","") body = string.gsub(body,"<A.HREF=\"https://www.google.com/url%?q=","") body = string.gsub(body,"\">here</A>.\r","") body = string.gsub(body,"https://[^<\r\n]+","1. <a href=%1>%1</a>") body = string.gsub(body,"http://[^<\r\n]+","1. <a href=%1>%1</a>") end
Fixed autocomplete HN example #usage: echo query|$0 read x xx=$(echo $x|tr '\40' +); printf 'GET %s HTTP/1.0\r\nHost: %s\r\n\r\n' \ '/complete/search?client=heirloom-hp&hl=en&gs_rn=35&gs_ri=heirloom-hp&cp=3&gs_id=7&q='${xx}'&gs_gbg=' \ 'clients1.google.com' \ |bssl client -connect 192.178.155.102:443 \ |sed -n '/window.google.ac.h/{ s/\"[a-z]*\"://g; s/\\u003c[a-z]*\\u003e//g; s/\\u003c\\\/[a-z]*\\u003e//g; /'"$x"'/p;}' \ |cut -d\" -f4,6,8,10,12,14,16,18,20,22 \ |tr \" '\n'
