Firefox: Rework search engines.

This commit is contained in:
Dmitry Voronin 2024-10-22 02:30:03 +03:00
parent 198d2b5217
commit c60265d135
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -150,20 +150,59 @@ in
installation_mode = "blocked"; installation_mode = "blocked";
}; };
} // extensions; } // extensions;
# NOTE: `firefox-esr` edition is required to change default search engine. # NOTE: `firefox-esr` edition is required to change search engines.
SearchEngines = { SearchEngines = {
Default = "Searx"; Default = "Searx";
PreventInstalls = true;
Add = [ Add = [
{ {
Alias = "s"; Alias = "s";
Description = "Searx Search"; Description = "SearX";
IconURL = "https://search.voronind.com/favicon.ico"; IconURL = "https://search.voronind.com/favicon.ico";
Method = "POST"; Method = "POST";
Name = "Searx"; Name = "Searx";
PostData = "q={searchTerms}"; PostData = "q={searchTerms}";
# SuggestURLTemplate = "https://search.voronind.com/autocomplete?q={searchTerms}"; # SuggestURLTemplate = "https://search.voronind.com/autocomplete?q={searchTerms}";
URLTemplate = "https://search.voronind.com/search?q=%{searchTerms}"; URLTemplate = "https://search.voronind.com/search?q={searchTerms}";
} }
{
Alias = "ru";
Description = "RuTracker";
IconURL = "https://rutracker.org/favicon.ico";
Method = "GET";
Name = "RuTracker";
URLTemplate = "https://rutracker.org/forum/tracker.php?nm={searchTerms}";
}
{
Alias = "re";
Description = "Reddit";
IconURL = "https://www.reddit.com/favicon.ico";
Method = "GET";
Name = "Reddit";
URLTemplate = "https://www.reddit.com/search/?q={searchTerms}";
}
{
Alias = "no";
Description = "NixOS Option";
IconURL = "https://search.nixos.org/favicon.ico";
Method = "GET";
Name = "NixOS Option";
URLTemplate = "https://search.nixos.org/options?query={searchTerms}";
}
{
Alias = "np";
Description = "NixOS Package";
IconURL = "https://search.nixos.org/favicon.ico";
Method = "GET";
Name = "NixOS Package";
URLTemplate = "https://search.nixos.org/packages?query={searchTerms}";
}
];
Remove = [
"Bing"
"DuckDuckGo"
"Google"
"Wikipedia (en)"
]; ];
}; };
}; };