diff --git a/revanced.ps1 b/revanced.ps1 index 4173efd..f5dbde5 100644 --- a/revanced.ps1 +++ b/revanced.ps1 @@ -189,9 +189,10 @@ function main { [System.Collections.ArrayList]$savedExclusions = New-Object System.Collections.ArrayList $savedExclusionsNames = $config.excluded foreach ($i in $integrationsList) { - if (($null -ne $savedExclusionsNames[0]) -and $i.StartsWith($savedExclusionsNames[0])) { - [void] $savedExclusions.Add($true) - $savedExclusionsNames.RemoveAt(0) + $integrationID = $i.Split(':')[0] + if (($savedExclusionsNames.Count -gt 1) -and $savedExclusionsNames.Contains($integrationID)) { + $savedExclusions.Add($true) + $savedExclusionsNames.Remove($integrationID) } else { [void] $savedExclusions.Add($false)