From bba421ddb63597bf918ecccacfd4a33493016b9f Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Tue, 16 Apr 2024 06:43:40 +0400 Subject: [PATCH] fix(YouTube - Hide Shorts components): Hide suggested actions in incognito mode --- .../integrations/youtube/patches/components/ShortsFilter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsFilter.java b/app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsFilter.java index cbe254aa..ad78ac8e 100644 --- a/app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsFilter.java +++ b/app/src/main/java/app/revanced/integrations/youtube/patches/components/ShortsFilter.java @@ -220,7 +220,8 @@ public final class ShortsFilter extends Filter { } if (matchedGroup == suggestedAction) { - if (contentIndex == 0 && suggestedActionsGroupList.check(protobufBufferArray).isFiltered()) { + // Suggested actions can be at the start or in the middle of a path. + if (suggestedActionsGroupList.check(protobufBufferArray).isFiltered()) { return super.isFiltered( identifier, path, protobufBufferArray, matchedGroup, contentType, contentIndex );