mirror of
https://github.com/yokoffing/Betterfox.git
synced 2026-06-12 15:40:48 +05:30
Updated Common Overrides (markdown)
+21
-8
@@ -19,14 +19,11 @@ To enable certain functions, `copy+paste` the appropriate prefs to the `MY OVERR
|
||||
|
||||
***
|
||||
|
||||
### Color Theme
|
||||
### 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.
|
||||
Firefox follows the OS's light or dark [theme](https://support.mozilla.org/en-US/kb/use-themes-change-look-of-firefox#w_managing-themes) for buttons, menus, and windows, but not settings pages and websites. Betterfox overrides this to include settings pages and websites.
|
||||
|
||||
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.
|
||||
However, you can set Firefox's theme to be the opposite of your OS theme using the options below.
|
||||
|
||||
* `☰` *→ Settings → General → Language and Appearance → Website appearance*
|
||||
|
||||
@@ -34,12 +31,26 @@ However, you can override this and force Firefox's settings pages and websites t
|
||||
// PREF: preferred color scheme for websites and sub-pages
|
||||
// 0 = Dark theme
|
||||
// 1 = Light theme
|
||||
// 2 = match OS theme [Betterfox user.js]
|
||||
// 2 = match OS theme [Betterfox default]
|
||||
user_pref("layout.css.prefers-color-scheme.content-override", 2);
|
||||
```
|
||||
|
||||
***
|
||||
|
||||
### Font improvement
|
||||
Text rendering on Windows sucks. This makes it better.
|
||||
|
||||
```javascript
|
||||
// PREF: use DirectWrite everywhere like Chrome [WINDOWS]
|
||||
user_pref("gfx.font_rendering.cleartype_params.rendering_mode", 5);
|
||||
user_pref("gfx.font_rendering.cleartype_params.cleartype_level", 100);
|
||||
user_pref("gfx.font_rendering.cleartype_params.force_gdi_classic_for_families", "");
|
||||
user_pref("gfx.font_rendering.cleartype_params.force_gdi_classic_max_size", 6);
|
||||
user_pref("gfx.font_rendering.directwrite.use_gdi_table_loading", false);
|
||||
```
|
||||
|
||||
***
|
||||
|
||||
### Password, credit card, and address management
|
||||
The built-in password manager is disabled for security.
|
||||
|
||||
@@ -153,8 +164,10 @@ user_pref("privacy.userContext.enabled", true);
|
||||
### GPU-accelerated Canvas2D
|
||||
Add this pref if you use a dedicated GPU on a Windows PC. (It's already enabled on macOS and Linux.)
|
||||
|
||||
If you don't know what a discrete graphics card is or if your computer has one, skip this option.
|
||||
|
||||
> [!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).
|
||||
> This pref may cause issues on some Windows machines using [integrated GPUs](https://github.com/yokoffing/Betterfox/issues/153)
|
||||
|
||||
```javascript
|
||||
// PREF: enable GPU-accelerated Canvas2D [WINDOWS]
|
||||
|
||||
Reference in New Issue
Block a user