changed default user agent to "Firefox" to fix google/youtube pages not working

This commit is contained in:
partisan 2025-05-11 09:03:08 +02:00
parent b8bac12e7e
commit 52633a0b3e
3 changed files with 85 additions and 80 deletions

View file

@ -65,6 +65,7 @@ Here are the details of each parameter used in the patching system:
1. **`standard`:** Standard patching type that follows the `+` (add) and `-` (remove) syntax.
- Used for general file modifications.
- Supports multi-line block matching: the entire `-` block must be present to be replaced by the `+` block.
- **Example:**
```patch
i: /browser/branding/official/configure.sh
@ -73,6 +74,21 @@ Here are the details of each parameter used in the patching system:
-MOZ_APP_DISPLAYNAME=Firefox
+MOZ_APP_DISPLAYNAME=Spitfire
```
- **Multi-line example:**
```patch
-project_flag(
- env="MOZ_APP_UA_NAME",
- default="",
- nargs=1,
- help="application name in the User Agent string",
-)
+project_flag(
+ env="MOZ_APP_UA_NAME",
+ default="Firefox",
+ nargs=1,
+ help="application name in the User Agent string",
+)
```
Note: *Type will fallback to t:standard when no type is specified.*
2. **`pref`:** Indicates that the patch is modifying preference settings (e.g., Firefox `prefs.js`).