Jump to content

Firefox basic Google search


Recommended Posts

Introduction
The purpose of this workflow is to allow a search of Google which excludes from the results Google AI generated results. In the workflow configuration you can also choose whether or not to exclude from the search Amazon, eBay and/or YouTube.

You can optionally specify a verbatim search (which makes Google use your exact search inputs instead of fuzzy searching everything).

The search results will open in a Firefox private window.

Usage
Select in the configuration which Google domain you wish to use for your searches (the default is https://google.com but https://google.co.uk is provided as an alternative). Choose which listed domains (if any) you wish to exclude from the search.

Type the keyword (the default is goo) followed by a space and your search term then press .

Search.thumb.png.ae275ac1264a2eafe1f287afaa8cadc9.png
The search results open in a new Firefox private tab.

For a verbatim search press ⌥⏎ after your search term.

The workflow ReadMe contains instructions for adding exclusions in addition to those for Amazon, eBay and YouTube.

 

The workflow has no dependencies.

 

GitHub download link

 

Stephen

Link to comment

This looks awesome! I have a few suggestions for streamlining the use of exclusions.

 

In both Arg and Vars objects, you could rename the variables from "searchTerm" to "fuzzyTerm" and "verbatimTerm" respectively. Then in the Run Script object for assembling the URL, you could adjust the code to look something like this:

exclusions=''

# Add exclusions here
[ "${exAmazon}" -eq 1 ] && exclusions+=' -Amazon'

[ "${exeBay}" -eq 1 ] && exclusions+=' -eBay'

[ "${exYouTube}" -eq 1 ] && exclusions+=' -YouTube'

# Assembly of fuzzy or verbatim search URL taking account of exclusions
if [ -n "${fuzzyTerm}" ];
then
	echo "${theHost}search?q=${fuzzyTerm}+$exclusions &udm=14"
else
	echo "${theHost}search?q=${verbatimTerm}+$exclusions &udm=14&tbs=li:1"
fi

 

By setting the fuzzy and verbatim search variables to different names, we only need a single Run Script rather than two. Also instead of creating a new variable for each exclusion, the code above starts with an empty string and adds each exclusion automatically, eliminating the need for step 5 in your documentation. This also allows for simplified if statements, as an "else" clause is no longer required. You can still use a normal if statement if you prefer, but these one-liners can accomplish the same thing with less code to worry about.

Edited by FireFingers21
Link to comment
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...