From 75d043d582cb4c624d22dea2f6ebe49d2629a894 Mon Sep 17 00:00:00 2001 From: "Robert C. Maehl" Date: Sun, 1 Oct 2023 21:34:47 -0400 Subject: [PATCH] Restore BingChat for other browsers --- MSEdgeRedirect.au3 | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/MSEdgeRedirect.au3 b/MSEdgeRedirect.au3 index f1b5284..b2bd802 100644 --- a/MSEdgeRedirect.au3 +++ b/MSEdgeRedirect.au3 @@ -57,7 +57,6 @@ Func ActiveMode(ByRef $aCMDLine) Local $sCMDLine = "" Local $sParent = _WinAPI_GetProcessName(_WinAPI_GetParentProcess()) - $aCMDLine = FixTreeIntegrity($aCMDLine) CheckEdgeIntegrity($aCMDLine[1]) $aCMDLine[1] = StringReplace($aCMDLine[1], "msedge.exe", "msedge_IFEO.exe") @@ -586,18 +585,18 @@ Func _DecodeAndRun($sEdge = $aEdges[1], $sCMDLine = "") Case Else FileWrite($hLogs[$URIFailures], _NowCalc() & " - Invalid App URL: " & $sCMDLine & @CRLF) EndSelect - Case StringInStr($sCMDLine, "bing.com/chat") Or StringInStr($sCMDLine, "bing.com%2Fchat") ; Fix BingAI - If _GetSettingValue("NoChat") Then - ShellExecute($sCMDLine) - Else - _SafeRun($sEdge, $sCMDLine) - EndIf Case StringInStr($sCMDLine, "ux=copilot") If _GetSettingValue("NoPilot") Then ShellExecute("ms-settings:") Else _SafeRun($sEdge, $sCMDLine) EndIf + Case StringInStr($sCMDLine, "bing.com/chat") Or StringInStr($sCMDLine, "bing.com%2Fchat") ; Fix BingAI + If _GetSettingValue("NoChat") Then + ContinueCase + Else + _SafeRun($sEdge, $sCMDLine) + EndIf Case StringInStr($sCMDLine, "&url=") ; Fix Windows 11 Widgets ContinueCase Case StringInStr($sCMDLine, "microsoft-edge:")