From efc88c73fac56f63c7c559c9acd5c1ebf1551d44 Mon Sep 17 00:00:00 2001 From: theonlyasdk <168300808+theonlyasdk@users.noreply.github.com> Date: Sun, 5 May 2024 22:56:17 +0530 Subject: [PATCH] Ladybird: Add Wikipedia search button in newtab.html --- Base/res/ladybird/newtab.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Base/res/ladybird/newtab.html b/Base/res/ladybird/newtab.html index 4bbc2069e5c..b27d09ec4ea 100644 --- a/Base/res/ladybird/newtab.html +++ b/Base/res/ladybird/newtab.html @@ -14,7 +14,9 @@ text-align: center; display: block; width: 100%; - max-width: 400px; + + /* Adjust this as more buttons are added */ + max-width: 480px; } img { @@ -49,6 +51,7 @@ + @@ -86,6 +89,9 @@ } else if (searchEngine == "wiby") { url = new URL("https://wiby.me"); url.searchParams.set("q", query); + } else if (searchEngine == "wikipedia") { + url = new URL("https://en.wikipedia.org/w/index.php?title=Special:Search"); + url.searchParams.set("search", query); } else if (searchEngine == "yandex") { url = new URL("https://yandex.com/search"); url.searchParams.set("text", query);