alice0775 / userChrome.js

450 stars 122 forks source link

allow_search_oneoff_with_empty_text.uc.js to open at least the second level domain instead to do empy search #86

Closed logusergithub closed 1 month ago

logusergithub commented 1 month ago

First thanks that I still haven't found a worthy alternative (between extensions related to bookmarks, search or new tab page) to overcome the crap they made. I don't know if feasible, but it is possible by clicking on the search engine icon and with the search bar empty to totally restore the old behavior: instead of doing an empty search, open the preset address or at the very least redirect to the second-level domain based of the search preset.

Three examples of search engines I had customized:

With query: https://alternativeto.net/browse/search/?q={searchTerms} Empty search bar (old behavior): https://alternativeto.net/platform/windows/?license=free&sort=addeddate Empty search bar (script patch): https://alternativeto.net/browse/search/?q=&license=free&platform=windows

With query: https://www.ghacks.net/?s={searchTerms} Empty search bar (old behavior): https://www.ghacks.net/latest-posts/ Empty search bar (script patch): https://www.ghacks.net/?s=

With query: https://www.deepl.com/translator#../it/{searchTerms} Empty search bar (old behavior): https://www.deepl.com/translator#it/en/ Empty search bar (script patch): https://www.deepl.com/en/translator#../it/

logusergithub commented 1 month ago

Maybe redirect, I was viewing the search.json.mozlz4 file to explain better and if I didn't do anything wrong I realized that there is an entry missing in the updated file.

logusergithub commented 1 month ago

Solved, I hadn't thought that I could use a script with ViolentMonkey or the Redirector extension. Obviously it would not have been possible without this script, thanks again.