Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

search engine #13

Open
ghost opened this issue Sep 30, 2018 · 2 comments
Open

search engine #13

ghost opened this issue Sep 30, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 30, 2018

Is there a way to make the search engine work differently when the "query" option is empty?
["https://eztv.ag/search/", "", "EZTV", ""],

for example: https://eztv.ag/search/searchtermhere
if I leave the query option empty, it still adds "?" somewhere in there and breaks the search engine.

So it would be great if we could have an option to disable the automatic inclusion of "?" and whatever else for certain search engines.

@NelsWebDev
Copy link

on line 215:
var jsSearchUrl=engine[0]+"?"+engine[1]+"=";
change it to
var jsSearchUrl=engine[0]+engine[1];

Doing so will require you to change the ones that do have question marks to go from "q" to "?q="

@davezig
Copy link

davezig commented Jun 1, 2020

on line 215:
var jsSearchUrl=engine[0]+"?"+engine[1]+"=";
change it to
var jsSearchUrl=engine[0]+engine[1];

Doing so will require you to change the ones that do have question marks to go from "q" to "?q="

NelsWebDev: thank you so much for commenting! I was looking for this same answer actually. I changed the value that you recommended but it still did not work for me. Using the change of var jsSearchUrl=engine[0]+engine[1]; still just sends over a ? to the search engine and all of my other search engines still work (and I did not change from "q" to "?q=" yet.

I actually used the example from horusra and tried EZTV but the URL is redirecting to eztv.io now. Can you think of anything else that I may be missing? Really appreciate your input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants