From b84bab6dcd192e6844110986759a07939b90d2f9 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Sun, 17 Nov 2019 01:25:32 -0500 Subject: Don't pin search engines to top sites. * data/patches/dont-pin-search-engines-to-top-sites.patch: New file. --- .../dont-pin-search-engines-to-top-sites.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 data/patches/dont-pin-search-engines-to-top-sites.patch (limited to 'data/patches/dont-pin-search-engines-to-top-sites.patch') 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", -- cgit v1.2.3