Base: Add Wiby Search To New Tab Page

This commit is contained in:
Kim Kulak 2023-07-02 13:13:46 +02:00 committed by Linus Groh
parent cea2071349
commit cfb6baf973

View file

@ -49,6 +49,7 @@
<button type="button" onclick="search('frogfind')">FrogFind</button>
<button type="button" onclick="search('github')">GitHub</button>
<button type="button" onclick="search('google')">Google</button>
<button type="button" onclick="search('wiby')">Wiby</button>
<button type="button" onclick="search('yandex')">Yandex</button>
</div>
</form>
@ -86,6 +87,9 @@
} else if (searchEngine == "google") {
url = new URL("https://google.com/search");
url.searchParams.set("q", query);
} else if (searchEngine == "wiby") {
url = new URL("https://wiby.me");
url.searchParams.set("q", query);
} else if (searchEngine == "yandex") {
url = new URL("https://yandex.com/search");
url.searchParams.set("text", query);