diff --git a/Common-Overrides.md b/Common-Overrides.md index 28f09f6..87cb894 100644 --- a/Common-Overrides.md +++ b/Common-Overrides.md @@ -51,49 +51,6 @@ user_pref("signon.privateBrowsingCapture.enabled", false); *** -### Search settings -#### Allow search engine suggestions -[Search suggestions](https://support.mozilla.org/en-US/kb/search-firefox-address-bar#w_search-suggestions) are disabled in the URL bar to keep everything you type from going to Google. - -You can still use [search shortcuts](https://support.mozilla.org/en-US/kb/search-firefox-address-bar#w_search-shortcuts) and custom [bookmark keywords](https://www-archive.mozilla.org/docs/end-user/keywords.html) ([YouTube example](https://youtu.be/bGTBH9yr8uw?t=968)). -```javascript -// PREF: restore search engine suggestions -user_pref("browser.search.suggest.enabled", true); -``` - -#### Change your default search engine -You can also [select](https://support.mozilla.org/en-US/kb/change-your-default-search-settings-firefox#w_default-search-engine) a different search engine just for [Private Browsing](https://support.mozilla.org/en-US/kb/private-browsing-use-firefox-without-history) windows. (This is an option after you apply the `user.js`.) - 1) Go to `☰` *→ Settings → Search → Default Search Engine* - 2) Change your default search engine to DuckDuckGo, or [add](https://github.com/yokoffing/Betterfox/blob/04c3184359c83d7b58411c3b68f40f3e9d95c373/Securefox.js#L600-L604) a premium search engine like [Kagi](https://kagi.com/). - -#### Adjust URL bar suggestions -`☰` *→ Settings → Privacy & Security → Address Bar* -```javascript -// PREF: disable URL bar top sites dropdown suggestions with empty query -user_pref("browser.urlbar.suggest.topsites", false); // Shortcuts (Top Sites) - -// PREF: clean up URL bar suggestions -user_pref("browser.urlbar.suggest.history", false); // Browsing history -user_pref("browser.urlbar.suggest.bookmark", false); // Bookmarks -user_pref("browser.urlbar.suggest.openpage", false); // Open tabs -user_pref("browser.urlbar.suggest.engines", false); // Search engines; tab-to-search -``` - -*** - -### Pinned shortcuts on new tab page -Top sites (pinned site shortcuts) are removed for a clean new tab page. -```javascript -// PREF: restore Top Sites on New Tab page and remove sponsored content -user_pref("browser.newtabpage.activity-stream.feeds.topsites", true); // Shortcuts -user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // Sponsored shortcuts -user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); // Recommended by Pocket -user_pref("browser.newtabpage.activity-stream.showSponsored", false); // Sponsored Stories -user_pref("browser.newtabpage.activity-stream.default.sites", ""); // clear default topsites -``` - -*** - ### Location requests Location requests are blocked to minimize annoyances. ```javascript @@ -112,34 +69,62 @@ user_pref("permissions.default.desktop-notification", 0); *** -### Downloads +### New tab shortcuts +#### Firefox Home +Top sites (pinned site shortcuts) are removed for a clean new tab page. -#### Download files directly without user permission. - -(Less security, more convenience.) +`☰` *→ Settings → Home → Firefox Home Content* ```javascript -// PREF: download files directly without asking -// Do not ask where to download. -// Do not enforce user interaction for greater security. +// PREF: restore Top Sites on New Tab page and remove sponsored content +user_pref("browser.newtabpage.activity-stream.feeds.topsites", true); // Shortcuts +user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); // Sponsored shortcuts +user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); // Recommended by Pocket +user_pref("browser.newtabpage.activity-stream.showSponsored", false); // Sponsored Stories +user_pref("browser.newtabpage.activity-stream.default.sites", ""); // clear default topsites +``` + +#### Adjust URL bar suggestions +Show top sites when you click on the address bar. + +`☰` *→ Settings → Privacy & Security → Address Bar* +```javascript +// PREF: restore top sites dropdown suggestions with empty query +user_pref("browser.urlbar.suggest.topsites", true); // Shortcuts (Top Sites) +``` + +*** + +### Search settings +#### Allow search engine suggestions +[Search suggestions](https://support.mozilla.org/en-US/kb/search-firefox-address-bar#w_search-suggestions) are disabled in the URL bar to keep everything you type from going to Google. + +You can still use [search shortcuts](https://support.mozilla.org/en-US/kb/search-firefox-address-bar#w_search-shortcuts) and custom [bookmark keywords](https://www-archive.mozilla.org/docs/end-user/keywords.html) ([YouTube example](https://youtu.be/bGTBH9yr8uw?t=968)). +```javascript +// PREF: restore search engine suggestions +user_pref("browser.search.suggest.enabled", true); +``` + +#### Change your default search engine +You can also [select](https://support.mozilla.org/en-US/kb/change-your-default-search-settings-firefox#w_default-search-engine) a different search engine just for [Private Browsing](https://support.mozilla.org/en-US/kb/private-browsing-use-firefox-without-history) windows. (This is an option after you apply the `user.js`.) + 1) Go to `☰` *→ Settings → Search → Default Search Engine* + 2) Change your default search engine to DuckDuckGo, or [add](https://github.com/yokoffing/Betterfox/blob/04c3184359c83d7b58411c3b68f40f3e9d95c373/Securefox.js#L600-L604) a premium search engine like [Kagi](https://kagi.com/). + +*** + +### Downloads + +#### Always download files to the same location +```javascript +// PREF: always download files to the same location // [SETTING] General>Downloads>Always ask you where to save files // [DIALOGUE] "Ask whether to open or save files" // true=direct download (default) -// false=the user is asked what to do +// false=the user is asked where to save user_pref("browser.download.useDownloadDir", true); ``` -#### Do not display the download panel after every download. - -```javascript -// PREF: disable downloads panel opening on every download -// Control whether to open the downloads panel every time a download begins. -// The first download ever ran in a new profile will still open the panel. -user_pref("browser.download.alwaysOpenPanel", false); -``` - #### Choose where your downloads save to by default. - ```javascript // PREF: choose download location // [SETTING] To set your default "downloads": General>Downloads>Save files to... @@ -147,6 +132,14 @@ user_pref("browser.download.alwaysOpenPanel", false); user_pref("browser.download.folderList", 1); ``` +#### Do not display the download panel after every download. +```javascript +// PREF: disable downloads panel opening on every download +// Control whether to open the downloads panel every time a download begins. +// The first download ever ran in a new profile will still open the panel. +user_pref("browser.download.alwaysOpenPanel", false); +``` + *** ### Containers