1
0
mirror of https://github.com/yokoffing/Betterfox.git synced 2026-06-12 15:40:48 +05:30

Updated Common Overrides (markdown)

yokoffing
2023-10-09 18:12:42 -04:00
parent 9a8a7e8e69
commit 3bca15ea9c
+54 -61
@@ -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
Location requests are blocked to minimize annoyances. Location requests are blocked to minimize annoyances.
```javascript ```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. `☰` *→ Settings → Home → Firefox Home Content*
(Less security, more convenience.)
```javascript ```javascript
// PREF: download files directly without asking // PREF: restore Top Sites on New Tab page and remove sponsored content
// Do not ask where to download. user_pref("browser.newtabpage.activity-stream.feeds.topsites", true); // Shortcuts
// Do not enforce user interaction for greater security. 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 // [SETTING] General>Downloads>Always ask you where to save files
// [DIALOGUE] "Ask whether to open or save files" // [DIALOGUE] "Ask whether to open or save files"
// true=direct download (default) // 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); 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. #### Choose where your downloads save to by default.
```javascript ```javascript
// PREF: choose download location // PREF: choose download location
// [SETTING] To set your default "downloads": General>Downloads>Save files to... // [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); 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 ### Containers