firefox: youtube search engine

This commit is contained in:
Primrose 2025-05-30 14:47:35 +02:00
parent bfb096ad73
commit 585f75ae92
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -25,21 +25,28 @@ in {
SearchEngines = { SearchEngines = {
Default = "Google Customized"; Default = "Google Customized";
Remove = ["Google"]; Remove = ["Google"];
Add = [ Add = let
(let withGoogleFlags = x:
withFlags = x:
x x
+ mkLrFlag ["lang_fr" "lang_en" "lang_zh-TW"] + mkLrFlag ["lang_fr" "lang_en" "lang_zh-TW"]
+ mkGlFlag "fr" + mkGlFlag "fr"
+ mkHlFlag "fr"; + mkHlFlag "fr";
in { in [
{
Name = "Google Customized"; Name = "Google Customized";
Alias = "G"; Alias = "G";
IconURL = "https://google.com/favicon.ico"; IconURL = "https://google.com/favicon.ico";
Description = "Your data yum yum"; Description = "Your data yum yum";
SuggestURLTemplate = withFlags "https://suggestqueries.google.com/complete/search?q={searchTerms}"; SuggestURLTemplate = withGoogleFlags "https://suggestqueries.google.com/complete/search?q={searchTerms}";
URLTemplate = withFlags "https://google.com/search?q={searchTerms}"; URLTemplate = withGoogleFlags "https://google.com/search?q={searchTerms}";
}) }
{
Name = "YouTube";
Alias = "yt";
IconURL = "https://youtube.com/favicon.ico";
SuggestURLTemplate = withGoogleFlags "http://suggestqueries.google.com/complete/search?q={searchTerms}&ds=yt";
URLTemplate = withGoogleFlags "https://www.youtube.com/results?search_query={searchTerms}";
}
{ {
Name = "Codeberg"; Name = "Codeberg";
Alias = "gco"; Alias = "gco";