From 95338a383d5b65ab79106fdf12ed45fc6e38ab98 Mon Sep 17 00:00:00 2001 From: grizzlyuser Date: Thu, 10 Sep 2020 16:49:40 +0300 Subject: libre/iceweasel: Drop origin params from DDG search These let DuckDuckGo know the place in UI the search ran from. For example, the resulting search URL from address bar: https://html.duckduckgo.com/html/?t=ffab&q=parabola where t=ffab is the parameter in question. See unpatched file in the source tree for possible values of this parameter: browser/components/search/extensions/ddg/manifest.json --- libre/iceweasel/PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libre/iceweasel/PKGBUILD') diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD index 39a5fcf75..8cec8fe8b 100644 --- a/libre/iceweasel/PKGBUILD +++ b/libre/iceweasel/PKGBUILD @@ -287,6 +287,11 @@ END pushd browser/components/search/extensions sed -i "${_remove_engines_sed}" list.json sed -i 's|https://duckduckgo.com/|https://html.duckduckgo.com/html/|' ddg/manifest.json + + # Removing URL parameters that let DuckDuckGo know the place in UI + # the search was ran from (like address bar, context menu, etc.) + jq 'del(.chrome_settings_overrides.search_provider.params)' ddg/manifest.json > manifest.json.tmp \ + && mv manifest.json.tmp ddg/manifest.json # Sanity-check search-engines patching _removed_engines_regex='Bing|Google|Seznam|Twitter|Yahoo|Yandex|Яндекс|amazon|bing|google|ebay|twitter' -- cgit v1.2.3