Stephen_C Posted June 23 Share Posted June 23 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 ⏎. 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 Vero 1 Link to comment
FireFingers21 Posted June 24 Share Posted June 24 (edited) 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 June 24 by FireFingers21 Stephen_C 1 Link to comment
Stephen_C Posted June 24 Author Share Posted June 24 @FireFingers21 many thanks for the suggestion. Shell script has never been my forte and your idea is very much better, and more easily adaptable, than my original. I'll release an update later in the day…at a slightly more civilised UK time than now. 😀 Thanks again. Stephen FireFingers21 1 Link to comment
Stephen_C Posted June 24 Author Share Posted June 24 Version 1.1 released: improved and simplified shell script with consequent easier method of adding new exclusions. (Credit to @FireFingers21.) Updated ReadMe. Stephen Link to comment
FireFingers21 Posted June 25 Share Posted June 25 @Stephen_C No problem, thanks for sharing the workflow to begin with! Google is so much nicer to use now. Link to comment
Stephen_C Posted August 20 Author Share Posted August 20 Version 1.2 adds a Universal Action (limited to selected text) and an appropiately updated ReadMe. Stephen Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now