Skip to content

Commit

Permalink
Turn on "Live Caption" in Google Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
YummyBacon5 authored Jun 13, 2024
1 parent f866359 commit 7f3bbb3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,14 @@ public class WinAPI {
[WinAPI]::SendMessageTimeout(0xffff, 0x1a, [IntPtr]::Zero, "Environment", 2, 5000, [IntPtr]::Zero)
}

# Turn on "Live Caption" in Google Chrome
if (Confirmation "Turn on 'Live Caption' in Google Chrome") {
$originalFile = "$env:LocalAppData\Google\Chrome\User Data\Default\Preferences"
$content = Get-Content -Path $originalFile | ConvertFrom-Json
$content.accessibility.captions.live_caption_enabled = "true"
$content | ConvertTo-Json -Compress | Set-Content -Path $originalFile
}

# Set default browser to Chrome
Invoke-WebRequest "https://raw.githubusercontent.com/likes-gay/win-config/main/default_browser.vbs" -OutFile .\default_browser.vbs
Invoke-Expression "Cscript.exe .\default_browser.vbs //nologo"
Expand Down

0 comments on commit 7f3bbb3

Please sign in to comment.