From 5eff76e80b08871ea6dc6cc8a5a94da9e53dc51c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Sch=C3=A4ferdiek?= Date: Wed, 5 Jun 2024 09:09:06 +0200 Subject: [PATCH] Update search hints for Firefox and Librewolf and align clear on shutdown settings --- firefox/README.md | 21 +++++++-------------- librewolf/README.md | 21 +++++++-------------- librewolf/librewolf.overrides.cfg | 14 +++++++++++++- 3 files changed, 27 insertions(+), 29 deletions(-) diff --git a/firefox/README.md b/firefox/README.md index 6877fb8..f23539c 100755 --- a/firefox/README.md +++ b/firefox/README.md @@ -71,22 +71,15 @@ Use a password manager and don't store or synchronize your passwords within inte If not possible in another way, you can add them via [Add custom search engine](https://addons.mozilla.org/en-US/firefox/addon/add-custom-search-engine/). Just follow instructions after installing and opening the extension. -```shell -# Tied to "Germany" for search results, maybe you like to change this -# Then generate a different URL -https://duckduckgo.com/?q=%s&ks=l&kav=1&kn=1&kp=-2&kak=-1&kax=-1&kaq=-1&kao=-1&kau=-1&kaj=m&kam=google-maps&k1=-1&kae=c -``` +For most search engines, you can also store your preferences inside the URL itself. This is great for having the same experience across devices and if you clear any cookies when your browser shuts down. Make sure that you have those preferences in when you save as a new search engine. + +You should also prefer `POST` over `GET`. Depending if there's a `%s` in the URL, it's using `GET`. If it's not present in the examples below, make sure to hit the _Advanced settings_ when adding it as search engine and check `POST`. Then provide `q={searchTerms}` in the input field. ```shell -# Tied to "Germany" for search results, maybe you like to change this -# Then generate a different URL -https://www.qwant.com/?q=%s&r=DE&sr=de&l=en_gb&h=1&s=0&a=1&b=1&vt=0&hc=0&smartNews=0&smartSocial=0&theme=0&i=1&donation=0&qoz=0&shb=0&shl=0 -``` - -```shell -# Tied to "Germany" for search results, maybe you like to change this -# Then generate a different URL -https://duckduckgo.com/?q=%s&ks=l&kav=1&kn=1&kp=-2&kak=-1&kax=-1&kaq=-1&kao=-1&kau=-1&kaj=m&kam=google-maps&k1=-1&kae=c +https://searx.be +https://duckduckgo.com +https://www.qwant.com +https://duckduckgo.com ``` Be sure to add shortcuts to be used in your navigation bar, e.g. `@ddg` refers to DuckDuckGo search engine and directly issues searches to DuckDuckGo from the navigation bar and does not use the default search engine, but your default! diff --git a/librewolf/README.md b/librewolf/README.md index 28c4e07..c91e492 100644 --- a/librewolf/README.md +++ b/librewolf/README.md @@ -41,22 +41,15 @@ Use a password manager and don't store or synchronize your passwords within inte If not possible in another way, you can add them via [Add custom search engine](https://addons.mozilla.org/en-US/firefox/addon/add-custom-search-engine/). Just follow instructions after installing and opening the extension. -```shell -# Tied to "Germany" for search results, maybe you like to change this -# Then generate a different URL -https://duckduckgo.com/?q=%s&ks=l&kav=1&kn=1&kp=-2&kak=-1&kax=-1&kaq=-1&kao=-1&kau=-1&kaj=m&kam=google-maps&k1=-1&kae=c -``` +For most search engines, you can also store your preferences inside the URL itself. This is great for having the same experience across devices and if you clear any cookies when your browser shuts down. Make sure that you have those preferences in when you save as a new search engine. + +You should also prefer `POST` over `GET`. Depending if there's a `%s` in the URL, it's using `GET`. If it's not present in the examples below, make sure to hit the _Advanced settings_ when adding it as search engine and check `POST`. Then provide `q={searchTerms}` in the input field. ```shell -# Tied to "Germany" for search results, maybe you like to change this -# Then generate a different URL -https://www.qwant.com/?q=%s&r=DE&sr=de&l=en_gb&h=1&s=0&a=1&b=1&vt=0&hc=0&smartNews=0&smartSocial=0&theme=0&i=1&donation=0&qoz=0&shb=0&shl=0 -``` - -```shell -# Tied to "Germany" for search results, maybe you like to change this -# Then generate a different URL -https://duckduckgo.com/?q=%s&ks=l&kav=1&kn=1&kp=-2&kak=-1&kax=-1&kaq=-1&kao=-1&kau=-1&kaj=m&kam=google-maps&k1=-1&kae=c +https://searx.be +https://duckduckgo.com +https://www.qwant.com +https://duckduckgo.com ``` Be sure to add shortcuts to be used in your navigation bar, e.g. `@ddg` refers to DuckDuckGo search engine and directly issues searches to DuckDuckGo from the navigation bar and does not use the default search engine, but your default! diff --git a/librewolf/librewolf.overrides.cfg b/librewolf/librewolf.overrides.cfg index d5fe729..198b745 100644 --- a/librewolf/librewolf.overrides.cfg +++ b/librewolf/librewolf.overrides.cfg @@ -7,8 +7,20 @@ /* Avoid non-playing, see https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1874808 */ defaultPref("media.autoplay.blocking_policy", 1); -/* Keep history */ +/* Keep history, delete everything else */ +//defaultPref("privacy.clearOnShutdown.cache", true); +//defaultPref("privacy.clearOnShutdown.cookies", true); +//defaultPref("privacy.clearOnShutdown.downloads", true); +//defaultPref("privacy.clearOnShutdown.formdata", true); //defaultPref("privacy.clearOnShutdown.history", false); +//defaultPref("privacy.clearOnShutdown.offlineApps", true); +//defaultPref("privacy.clearOnShutdown.openWindows", true); +//defaultPref("privacy.clearOnShutdown.sessions", true); +//defaultPref("privacy.clearOnShutdown.siteSettings", true); +//defaultPref("privacy.clearOnShutdown_v2.cache", true); +//defaultPref("privacy.clearOnShutdown_v2.cookiesAndStorage", true); +//defaultPref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", true); +//defaultPref("privacy.clearOnShutdown_v2.siteSettings", true); /* Disable logins */ defaultPref("services.sync.engine.passwords", false);