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 = {
Default = "Google Customized";
Remove = ["Google"];
Add = [
(let
withFlags = x:
x
+ mkLrFlag ["lang_fr" "lang_en" "lang_zh-TW"]
+ mkGlFlag "fr"
+ mkHlFlag "fr";
in {
Add = let
withGoogleFlags = x:
x
+ mkLrFlag ["lang_fr" "lang_en" "lang_zh-TW"]
+ mkGlFlag "fr"
+ mkHlFlag "fr";
in [
{
Name = "Google Customized";
Alias = "G";
IconURL = "https://google.com/favicon.ico";
Description = "Your data yum yum";
SuggestURLTemplate = withFlags "https://suggestqueries.google.com/complete/search?q={searchTerms}";
URLTemplate = withFlags "https://google.com/search?q={searchTerms}";
})
SuggestURLTemplate = withGoogleFlags "https://suggestqueries.google.com/complete/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";
Alias = "gco";