summaryrefslogtreecommitdiff
path: root/libre/iceweasel
diff options
context:
space:
mode:
authorgrizzlyuser <grizzlyuser@protonmail.com>2020-09-10 16:49:40 +0300
committerbill-auger <mr.j.spam.me@gmail.com>2020-10-12 16:59:20 -0400
commit95338a383d5b65ab79106fdf12ed45fc6e38ab98 (patch)
tree8cbc97f5c81ece5f08506e60cc6a9095d476882e /libre/iceweasel
parent2b5f9605d5be2f540237d0d9483b5aba507c4327 (diff)
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
Diffstat (limited to 'libre/iceweasel')
-rw-r--r--libre/iceweasel/PKGBUILD5
1 files changed, 5 insertions, 0 deletions
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'