Swapping Chrome for Brave on Windows

Unfortunately, Google phased out Manifest V2 in Chrome, so the full version of uBlock Origin is no longer available there.

In late 2024, Google completed its transition to Manifest V3 in Chrome, which fundamentally changed how browser extensions work. As a result, the full version of uBlock Origin is no longer available for Chrome users. Here's what happened and what your options are now.

Source: ublockorigin.com

Let's switch to Brave, a more privacy-focused browser.

Installation

We can install it from the command-line:

winget install Brave.Brave

Patch the registry

My main problem is muscle memory: I'm quick to do ctrl+v and type chrome. But if you want to run Brave (and you still have Chrome due to company policy), you have to patch it in the registry:

& {
  $brave = @(
    "$env:ProgramFiles\BraveSoftware\Brave-Browser\Application\brave.exe"
    "${env:ProgramFiles(x86)}\BraveSoftware\Brave-Browser\Application\brave.exe"
    "$env:LOCALAPPDATA\BraveSoftware\Brave-Browser\Application\brave.exe"
  ) | Where-Object { $_ -and (Test-Path $_) } | Select-Object -First 1

  if (-not $brave) {
    throw 'Brave niet gevonden.'
  }

  $key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\App Paths\chrome.exe'

  New-Item $key -Force | Out-Null
  Set-Item $key -Value $brave
  Set-ItemProperty $key -Name 'Path' -Value (Split-Path $brave)

  $item = Get-Item $key

  Write-Host 'Registry patch gezet:'
  Write-Host "  chrome.exe -> $($item.GetValue(''))"
  Write-Host "  Path       -> $($item.GetValue('Path'))"
}

Fix the profile icons

I'm using 2 profiles on my browser, one for business, one for private. In Chrome one can load custom profile pictures, but Brave does not have this much wanted feature. Fortunately, there is a workaround: just copy the two pictures to %LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data\Avatars and give them these file names:

expand_less brightness_auto