CanisLupus / swift-selection-search

Swift Selection Search (SSS) is a simple Firefox add-on that lets you quickly search for some text in a page using your favorite search engines.
https://addons.mozilla.org/firefox/addon/swift-selection-search/
MIT License
215 stars 26 forks source link

It's not straightforward adding search engines #166

Closed marlboonyer closed 4 years ago

marlboonyer commented 4 years ago

Example: today I tried adding dictionary.com. I've tried variations in the list but none of them work. I either get a 404 error or just the site without search terms. I've had this several times now and it's getting frustrating. Am I missing something? It's a very useful add-on but I don't want to have to deal with all effort.. thanks

ZIEXED commented 4 years ago

https://www.dictionary.com/browse/{searchTerms}?s=t https://www.thesaurus.com/browse/{searchTerms}

search for "TEST" in any site you want to add (in this case "dictionary.com") you will see that you have been redirected to https://www.dictionary.com/browse/TEST?s=t Then you only need to replace "TEST" with {searchTerms}

CanisLupus commented 4 years ago

As always, thank you, @ZIEXED ;)

Adding search engines is not always easy, but there's also no simple way to do this automatically.

Even though it is possible to make a dummy search automatically and try to see where in the URL (if at all) the dummy text appears, SSS would already need to know HOW to search on a certain website (i.e. the format the site uses). It needs user intervention.

I know this is a problem for users, so I did what I could to explain how to do this in the Instructions section in the options page:

image

Did you read this? I accept suggestions! :)

Cheers, Daniel

CanisLupus commented 4 years ago

Closing due to no additional input!