diff options
author | Mark H Weaver <mhw@netris.org> | 2019-11-17 01:25:32 -0500 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2019-11-17 11:21:01 -0500 |
commit | b84bab6dcd192e6844110986759a07939b90d2f9 (patch) | |
tree | 310a367096b3e760fe3a6bb95ea3da7f89031057 /data/patches | |
parent | 1850676a153eecb3ddff93b78bbd03472543b14a (diff) |
Don't pin search engines to top sites.
* data/patches/dont-pin-search-engines-to-top-sites.patch: New file.
Diffstat (limited to 'data/patches')
-rw-r--r-- | data/patches/dont-pin-search-engines-to-top-sites.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/data/patches/dont-pin-search-engines-to-top-sites.patch b/data/patches/dont-pin-search-engines-to-top-sites.patch new file mode 100644 index 0000000..762a240 --- /dev/null +++ b/data/patches/dont-pin-search-engines-to-top-sites.patch @@ -0,0 +1,29 @@ +--- a/browser/components/newtab/lib/ActivityStream.jsm.orig 1980-01-01 18:59:51.000000000 -0500 ++++ b/browser/components/newtab/lib/ActivityStream.jsm 2019-11-17 01:16:54.431504079 -0500 +@@ -155,24 +155,8 @@ + }], + ["improvesearch.topSiteSearchShortcuts.searchEngines", { + title: "An ordered, comma-delimited list of search shortcuts that we should try and pin", +- // This pref is dynamic as the shortcuts vary depending on the region +- getValue: ({geo}) => { +- if (!geo) { +- return ""; +- } +- const searchShortcuts = []; +- if (geo === "CN") { +- searchShortcuts.push("baidu"); +- } else if (["BY", "KZ", "RU", "TR"].includes(geo)) { +- searchShortcuts.push("yandex"); +- } else { +- searchShortcuts.push("google"); +- } +- if (["DE", "FR", "GB", "IT", "JP", "US"].includes(geo)) { +- searchShortcuts.push("amazon"); +- } +- return searchShortcuts.join(","); +- }, ++ // This pref is dynamic as the shortcuts could vary depending on the region ++ getValue: ({geo}) => { return ""; }, + }], + ["improvesearch.topSiteSearchShortcuts.havePinned", { + title: "A comma-delimited list of search shortcuts that have previously been pinned", |