bug-gnuzilla
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38262: Alternative DuckDuckGo default search engine patch


From: Amin Bandali
Subject: bug#38262: Alternative DuckDuckGo default search engine patch
Date: Mon, 18 Nov 2019 14:21:58 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

[ Testing whether this reply results in a new
  ticket being created on the GNU Bug Tracker;
  please ignore ]

Amin Bandali <address@hidden> writes:

> [ this message is mostly just to test bug-gnuzilla’s integration with
>   the GNU Bug Tracker; feel free to ignore ]
>
> Besides b5a0119537e8a7417d147b0b29f85f9012a32d40 (on the 68 branch), it
> seems the following simpler/shorter change to makeicecat also works:
>
>>From 4c57445eeb4705a0cf84186d72e58729d31ebc77 Mon Sep 17 00:00:00 2001
> From: Amin Bandali <address@hidden>
> Date: Sat, 16 Nov 2019 16:35:14 -0500
> Subject: [PATCH] Shorter patch to make DuckDuckGo the default search engine
>
> ---
>  makeicecat | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/makeicecat b/makeicecat
> index 4ff3e64..0e233b2 100755
> --- a/makeicecat
> +++ b/makeicecat
> @@ -176,7 +176,11 @@ EOF
>  sed "s%https://www.mozilla.org/legal/privacy/%https://$LEGALINFOURL%"; -i 
> ./browser/app/profile/firefox.js ./toolkit/content/aboutRights.xhtml
>  
>  # Copy custom ddg search plugin
> -find |grep -e ddg.xml -e duckduckgo.*.xml | xargs -i cp 
> $DATA/searchplugins/duckduckgo.xml {}
> +# find |grep -e ddg.xml -e duckduckgo.*.xml | xargs -i cp 
> $DATA/searchplugins/duckduckgo.xml {}
> +
> +# Make DuckDuckGo the default search engine
> +sed '/searchDefault/s/: \".*\"/: "DuckDuckGo"/g' -i 
> browser/components/search/extensions/list.json
> +sed '/visibleDefaultEngines/{n; s/"ddg",//; s/\"/"ddg", "/}'  -i 
> browser/components/search/extensions/list.json
>  
>  # Sanitize lists
>  for file in $(find |grep searchplugins/list.txt)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]