evilpie / add-custom-search-engine

Add a custom search engine to the list of available search engines in Firefox
https://addons.mozilla.org/en-US/firefox/addon/add-custom-search-engine/
Mozilla Public License 2.0
173 stars 13 forks source link

What if the website doesn't use "+" between words? #44

Closed Bhaalspawn closed 2 years ago

Bhaalspawn commented 2 years ago

how do i make a plugin if the URL is

https://www.hdblog.it/schede-tecniche/samsung-galaxy-a03_i5193/ and not https://www.hdblog.it/schede-tecniche/samsung+galaxy+a03_i5193/

or is

https://euw.op.gg/summoner/userName=Markus%20Vakarian (%20 it's a blank space) and not https://euw.op.gg/summoner/userName=Markus+Vakarian

evilpie commented 2 years ago

The actual search query is created by Firefox. I am not aware of any way to influence the encoding.

Bhaalspawn commented 2 years ago

so? you are telling me there is no solution?

evilpie commented 2 years ago

No there is no solution. And the solution would have to be provided by Firefox anyway.

Bhaalspawn commented 2 years ago

well there is another extension that does a similar thing (creates new new searc engines but availables when highlighting things) instead of %s it uses {searchterms} inside the URL used to create the engine

evilpie commented 2 years ago

You can also use {searchTerms} if you want, %s is just a convenience: https://github.com/evilpie/add-custom-search-engine/blob/master/search.js#L45

Bhaalspawn commented 2 years ago

{searchTerms} works onlyif nothing else is added together so i can't use features like these Cattura

CyrCom commented 2 years ago

As a suggestion for users, you can use google's (or others') 'site:' option to bypass this very sad problem. Regards