Skip to content

Commit

Permalink
Start on #448
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl committed Sep 10, 2024
1 parent 84e8c68 commit 6c360ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Includes/_URLModifications.au3
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Func _ChangeNewsProvider($sURL)
$aURL = StringSplit($sURL, "/")
$sURL = ""

For $iLoop = 1 To $aURL[0] Step 1 ; Get longest section (Article Title)
For $iLoop = 1 To $aURL[0] - 1 Step 1 ; Get longest section (Article Title), Skip Metadata
If StringLen($aURL[$iLoop]) > StringLen($sURL) Then $sURL = $aURL[$iLoop]
Next

Expand Down
9 changes: 7 additions & 2 deletions MSEdgeRedirect.au3
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,14 @@ ProcessCMDLine()

Func ActiveMode(ByRef $aCMDLine)

Local $iIndex
Local $sCMDLine = ""
Local $sParent = _WinAPI_GetProcessName(_WinAPI_GetParentProcess())

$aCMDLine = FixTreeIntegrity($aCMDLine)
CheckEdgeIntegrity($aCMDLine[1])
$aCMDLine[1] = StringReplace($aCMDLine[1], "msedge.exe", "msedge_IFEO.exe")

Select
Case $aCMDLine[0] = 1 ; No Parameters
ContinueCase
Expand Down Expand Up @@ -90,7 +91,11 @@ Func ActiveMode(ByRef $aCMDLine)
Case _ArraySearch($aCMDLine, "--profile-directory=", 2, 0, 0, 1) > 0 ; #68, Multiple Profiles
ContinueCase
Case $sParent = "MSEdgeRedirect.exe"
$sCMDLine = _ArrayToString($aCMDLine, " ", 2, -1)
$iIndex = _ArraySearch($aCMDLine, "--from-ie-to-edge", 2, 0, 0, 1)
If $iIndex Then
_ArrayDelete($aCMDLine, $iIndex)
$sCMDLine = _ArrayToString($aCMDLine, " ", 2, -1)
EndIf
_SafeRun($aCMDLine[1], $sCMDLine)
Case $sParent = "BrowserSelect.exe" ; TODO: DOUBLE CHECK $aCMDLine[2]
ContinueCase
Expand Down

0 comments on commit 6c360ee

Please sign in to comment.