From a960cee263a1fea55dff49c6f48d8f0945aeff1e Mon Sep 17 00:00:00 2001 From: zoicware <118035521+zoicware@users.noreply.github.com> Date: Sat, 20 Dec 2025 00:16:37 -0500 Subject: [PATCH] exit edge flag disable section when user is using a different lang #94 #95 --- RemoveWindowsAi.ps1 | 65 ++++++++++++++++++++++++++------------------- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/RemoveWindowsAi.ps1 b/RemoveWindowsAi.ps1 index f3d5ef9..c49c753 100644 --- a/RemoveWindowsAi.ps1 +++ b/RemoveWindowsAi.ps1 @@ -273,37 +273,46 @@ function Disable-Registry-Keys { $config = "$env:LOCALAPPDATA\Microsoft\Edge\User Data\Local State" if (Test-Path $config) { #powershell core bug where json that has empty strings will error - #$jsonContent = (Get-Content $config).Replace('""', '"_empty"') | ConvertFrom-Json - $jsonContent = (Get-Content $config -Raw) -replace '(?