Skip to content

Commit

Permalink
Restore BingChat for other browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Oct 2, 2023
1 parent e1b0b81 commit 75d043d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions MSEdgeRedirect.au3
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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:")
Expand Down

0 comments on commit 75d043d

Please sign in to comment.