You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Added support for targeting Brave Browser Beta with a new `--beta` flag in commands.
- Updated README.md to reflect the ability to manage Brave Beta and clarified installation paths.
- Modified error messages and version information to specify whether the stable or beta version of Brave is being used.
- Enhanced documentation in FEATURES.md, INSTALL.md, and POLICY-ENFORCEMENT.md to include details about Brave Beta support.
- Refactored internal code to manage preferences and application paths based on the selected Brave variant.
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Inspired by [SlimBrave](https://github.com/ltx0101/SlimBrave), [Debloat Brave Br
12
12
13
13
-**macOS** only today (uses `defaults` and `~/Library/Preferences/com.brave.Browser.plist`)
14
14
-**Go 1.25.6+** to build
15
-
-**Brave Browser** installed in `/Applications/Brave Browser.app` (tested with Brave stable; policy keys may vary by Brave version)
15
+
-**Brave Browser** installed in `/Applications/Brave Browser.app` (or **Brave Browser Beta** in `/Applications/Brave Browser Beta.app` with `--beta`; policy keys may vary by Brave version)
16
16
17
17
**Platform support:** Cowardly currently supports **macOS only**. Support for **Linux** and **Windows** may be added in the future; on those platforms Brave uses different policy mechanisms (e.g. JSON on Linux, registry/Group Policy on Windows). See **[docs/PLATFORMS.md](docs/PLATFORMS.md)** for details and contribution notes.
18
18
@@ -147,6 +147,14 @@ After applying or resetting, **restart Brave Browser** for changes to take effec
147
147
cowardly -r
148
148
```
149
149
150
+
-**Target Brave Browser Beta** — Use `--beta` with any command to manage Brave Beta instead of stable:
151
+
152
+
```bash
153
+
cowardly --beta --apply
154
+
cowardly --beta --reset
155
+
cowardly --beta
156
+
```
157
+
150
158
-**Print current settings** (user and enforced/managed when present)
Copy file name to clipboardExpand all lines: docs/FEATURES.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ This document summarizes what Cowardly currently does. For possible future work,
5
5
## Core: policy application
6
6
7
7
-**Apply settings** — Write Brave policy keys (bool, integer, string) to macOS. Used by presets and Custom mode.
8
-
-**Managed preferences first** — Tries to write to `/Library/Managed Preferences/com.brave.Browser.plist` so Brave enforces policies (Rewards, Wallet, etc. hidden). Falls back to user preferences (`~/Library/Preferences/com.brave.Browser.plist`) if the user cancels the auth dialog or lacks admin rights.
8
+
-**Managed preferences first** — Tries to write to `/Library/Managed Preferences/com.brave.Browser.plist`(or `com.brave.Browser.beta.plist` with `--beta`) so Brave enforces policies (Rewards, Wallet, etc. hidden). Falls back to user preferences (`~/Library/Preferences/com.brave.Browser.plist` or `com.brave.Browser.beta.plist`) if the user cancels the auth dialog or lacks admin rights.
9
9
-**Raw XML plist for managed** — Managed plist is generated as valid XML (not via `defaults write`) and copied into place with correct ownership and permissions.
10
10
-**Administrator privileges via AppleScript** — macOS authentication dialog (password or Touch ID) for writing to managed preferences; no password in the terminal.
11
11
-**Reset** — Removes all Brave policy settings: deletes user plist keys (and the plist file when empty) and removes the managed plist when present. Returns whether a managed plist existed and whether it was removed. Reset is blocked if Brave is running (user is told to quit Brave first).
@@ -37,6 +37,7 @@ See [POLICY-ENFORCEMENT.md](POLICY-ENFORCEMENT.md) for the rationale and impleme
|**User preferences**|`~/Library/Preferences/com.brave.Browser.plist`|**No** — Brave may still show Rewards, Wallet, etc. |
12
-
|**Managed preferences**|`/Library/Managed Preferences/com.brave.Browser.plist`|**Yes** — Brave treats these as mandatory and hides/ disables the features |
11
+
|**User preferences**|`~/Library/Preferences/com.brave.Browser.plist`(or `.beta` with `--beta`) |**No** — Brave may still show Rewards, Wallet, etc. |
12
+
|**Managed preferences**|`/Library/Managed Preferences/com.brave.Browser.plist`(or `.beta` with `--beta`) |**Yes** — Brave treats these as mandatory and hides/ disables the features |
13
13
14
14
If you only run `defaults write com.brave.Browser BraveRewardsDisabled -bool true`, the key is written to the user plist. After restarting Brave, the UI can still show Rewards and Wallet. To get **enforced** behavior (features hidden/disabled), the same keys must be present in the **managed** plist under `/Library/Managed Preferences/`. That path is the standard macOS location for mandatory (MDM-style) policies.
0 commit comments