Skip to content

Instantly share code, notes, and snippets.

@vil
Created January 14, 2026 07:02
Show Gist options
  • Select an option

  • Save vil/232c43eeb5521a8e90ed28bbb14d6010 to your computer and use it in GitHub Desktop.

Select an option

Save vil/232c43eeb5521a8e90ed28bbb14d6010 to your computer and use it in GitHub Desktop.
Debloating policies for Brave.
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