Created
January 14, 2026 07:02
-
-
Save vil/232c43eeb5521a8e90ed28bbb14d6010 to your computer and use it in GitHub Desktop.
Debloating policies for Brave.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| debloat_brave() { | |
| echo "Creating policies..." | |
| sudo mkdir -p /etc/brave/policies/managed/ | |
| local debloat_policies="/etc/brave/policies/managed/debloat.json" | |
| if [ ! -f "$debloat_policies" ]; then | |
| sudo touch "$debloat_policies" | |
| fi | |
| sudo tee -a "$debloat_policies" >/dev/null <<'EOF' | |
| { | |
| "BraveRewardsDisabled": true, | |
| "BraveWalletDisabled": true, | |
| "BraveVPNDisabled": true, | |
| "BraveAIChatEnabled": false, | |
| "BraveNewsDisabled": true, | |
| "BraveTalkDisabled": true, | |
| "SyncDisabled": true, | |
| "TorDisabled": true, | |
| "DnsOverHttpsMode": "automatic" | |
| } | |
| EOF | |
| } | |
| debloat_brave |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment