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

How to add other search engines? #1

Open
SIVAH-AKASH opened this issue Sep 27, 2021 · 6 comments
Open

How to add other search engines? #1

SIVAH-AKASH opened this issue Sep 27, 2021 · 6 comments

Comments

@SIVAH-AKASH
Copy link

I have a basic understanding of programming and I want to use a different search engine (Ecosia). Looking into the source code, I see that the main.cs file has the search prefix for google. Would just replacing that be enough?

Also the same file has the variable "searchSuggestionsBaseUrl". Where can I find the value for this for other search engines?

@sarrascaeta
Copy link
Owner

Sorry for the late response, but to answer your questions:

It looks like all you'd really need to do is replace http://google.com/search?q= (on line 66) with https://www.ecosia.org/search?q=

As for your question about searchSuggestionsBaseUrl, that's a little more complicated. The way I found that URL for google was by opening Chrome's dev tools and looking at what appears in the network tab as I type things. It looks like for ecosia, this URL would be https://ac.ecosia.org/?q=

@SIVAH-AKASH
Copy link
Author

Thanks for the reply. I have changed the above two links and also the image and image reference in "plugin.json". On the Wox website, I see an option to upload the plugin. Which file should I upload?

@sarrascaeta
Copy link
Owner

You can copy the json file and place it in the bin folder where the compiled DLLs are. Then just zip the whole folder and upload it on the Wox site. You may or may not need to change the file extension of the zip folder to '.wox', I can't remember.

@SIVAH-AKASH
Copy link
Author

Sorry for troubling you. What do you mean by "compiled DLLs"? I could not find them in your repository.

@sarrascaeta
Copy link
Owner

Oh, let me explain. When you build a C# "class library" project (which is what this is), the code gets compiled into some DLL files. This wouldn't be part of the repo, since it's what gets created when you compile the repo.

You can find these files here: Wox.Plugin.SimpleWebSearch/SimpleWebSearch/bin/debug/

Depending on the build config, you might see "release" instead of "debug"; that's fine.

@SIVAH-AKASH
Copy link
Author

SIVAH-AKASH commented Oct 21, 2021 via email

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