mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 15:40:48 +05:30
Updated Common Overrides (markdown)
+10
-32
@@ -21,44 +21,21 @@ To enable certain functions, `copy+paste` the appropriate prefs to the `MY OVERR
|
|||||||
|
|
||||||
### Color Theme
|
### Color Theme
|
||||||
|
|
||||||
By default, Firefox follows the operating system [theme](https://support.mozilla.org/en-US/kb/use-themes-change-look-of-firefox#w_managing-themes) (Light or Dark) for buttons, menus, and windows, but not for settings pages and websites. Betterfox ensures sub-pages and websites also match your system theme.
|
By default, Firefox follows the operating system [theme](https://support.mozilla.org/en-US/kb/use-themes-change-look-of-firefox#w_managing-themes) for buttons, menus, and windows, but not for settings pages and websites.
|
||||||
|
|
||||||
However, you can override this and force Firefox's settings pages and websites to use a Light or Dark theme.
|
However, you can override this and force Firefox's settings pages and websites to use a Light or Dark theme.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Betterfox already ensures both sub-pages and websites match your operating system theme (option `2`), but you may want to force the Light or Dark theme.
|
||||||
|
|
||||||
* `☰` *→ Settings → General → Language and Appearance → Website appearance*
|
* `☰` *→ Settings → General → Language and Appearance → Website appearance*
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// PREF: preferred color scheme for websites and sub-pages
|
// PREF: preferred color scheme for websites and sub-pages
|
||||||
// Dark (0), Light (1), System (2), Browser (3)
|
// 0 = Dark theme
|
||||||
user_pref("layout.css.prefers-color-scheme.content-override", 0);
|
// 1 = Light theme
|
||||||
```
|
// 2 = match OS theme [Betterfox user.js]
|
||||||
|
user_pref("layout.css.prefers-color-scheme.content-override", 2);
|
||||||
***
|
|
||||||
|
|
||||||
### Downloads
|
|
||||||
|
|
||||||
Betterfox's default download settings balance user experience and security. However, some users prefer to customize these prefs. You can read about them on [#267](https://github.com/yokoffing/Betterfox/issues/267#issuecomment-1864575868).
|
|
||||||
|
|
||||||
#### Ask where to save files
|
|
||||||
|
|
||||||
* `☰` *→ Settings → General → Files and Applications → Downloads → Always ask you where to save files*
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
// PREF: always ask where to download
|
|
||||||
// true = Direct download
|
|
||||||
// false = The user is asked what to do
|
|
||||||
user_pref("browser.download.useDownloadDir", false);
|
|
||||||
```
|
|
||||||
|
|
||||||
#### New file types
|
|
||||||
|
|
||||||
* `☰` *→ Settings → General → Files and Applications → Applications → What should Firefox do with other files?*
|
|
||||||
|
|
||||||
```javascript
|
|
||||||
// PREF: always ask how to handle new mimetypes
|
|
||||||
// false = Save files
|
|
||||||
// true = Ask whether to open or save files
|
|
||||||
user_pref("browser.download.always_ask_before_handling_new_types", false);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
***
|
***
|
||||||
@@ -178,7 +155,8 @@ user_pref("privacy.userContext.enabled", true);
|
|||||||
### GPU-accelerated Canvas2D
|
### GPU-accelerated Canvas2D
|
||||||
Add this pref if you use a dedicated GPU on a Windows PC. (It's already enabled on macOS and Linux.)
|
Add this pref if you use a dedicated GPU on a Windows PC. (It's already enabled on macOS and Linux.)
|
||||||
|
|
||||||
:warning: May cause issues on some Windows machines using [integrated](https://github.com/yokoffing/Betterfox/issues/153) [GPUs](https://github.com/yokoffing/Betterfox/issues/198).
|
> [!WARNING]
|
||||||
|
> This pref may cause issues on some Windows machines using [integrated](https://github.com/yokoffing/Betterfox/issues/153) [GPUs](https://github.com/yokoffing/Betterfox/issues/198).
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// PREF: enable GPU-accelerated Canvas2D [WINDOWS]
|
// PREF: enable GPU-accelerated Canvas2D [WINDOWS]
|
||||||
|
|||||||
Reference in New Issue
Block a user