mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
firefox: better custom google search engine
This commit is contained in:
parent
e66b0d54d0
commit
817576c3fb
2 changed files with 26 additions and 21 deletions
|
|
@ -19,27 +19,29 @@ in {
|
|||
programs.firefox = {
|
||||
enable = true;
|
||||
|
||||
policies.SearchEngines = {
|
||||
Default = "Google Customized";
|
||||
Add = [
|
||||
/*
|
||||
searxng doesn't
|
||||
- have good multilingual search support
|
||||
- use google backend on my server for some reason
|
||||
*/
|
||||
{
|
||||
Name = "searxng";
|
||||
URLTemplate = "https://sxng.confusedcompiler.org/search?q={searchTerms}";
|
||||
}
|
||||
{
|
||||
Name = "Google Customized";
|
||||
URLTemplate =
|
||||
"https://google.com/search?q={searchTerms}"
|
||||
+ mkLrFlag ["lang_fr" "lang_en" "lang_zh-TW"]
|
||||
+ mkGlFlag "fr"
|
||||
+ mkHlFlag "fr";
|
||||
}
|
||||
];
|
||||
policies = {
|
||||
RequestedLocales = ["fr" "en-US" "zh-TW"];
|
||||
|
||||
SearchEngines = {
|
||||
Default = "Google Customized";
|
||||
Remove = ["Google"];
|
||||
Add = [
|
||||
(let
|
||||
withFlags = 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}";
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
profiles = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue