mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
fix(YouTube - Hide feed components): Some litho filters are broken
This commit is contained in:
@ -19,12 +19,6 @@ public final class FeedComponentsFilter extends Filter {
|
||||
private static final String INLINE_EXPANSION_PATH = "inline_expansion";
|
||||
private static final String FEED_VIDEO_PATH = "video_lockup_with_attachment";
|
||||
|
||||
private static final ByteArrayFilterGroup inlineExpansion =
|
||||
new ByteArrayFilterGroup(
|
||||
Settings.HIDE_EXPANDABLE_CHIP,
|
||||
"inline_expansion"
|
||||
);
|
||||
|
||||
private static final ByteArrayFilterGroup mixPlaylists =
|
||||
new ByteArrayFilterGroup(
|
||||
null,
|
||||
@ -37,14 +31,11 @@ public final class FeedComponentsFilter extends Filter {
|
||||
"channel_profile"
|
||||
);
|
||||
private static final StringTrieSearch mixPlaylistsContextExceptions = new StringTrieSearch();
|
||||
|
||||
private static final StringTrieSearch communityPostsFeedGroupSearch = new StringTrieSearch();
|
||||
private final StringFilterGroup channelProfile;
|
||||
private final StringFilterGroup communityPosts;
|
||||
private final StringFilterGroup expandableChip;
|
||||
private final ByteArrayFilterGroup visitStoreButton;
|
||||
private final StringFilterGroup videoLockup;
|
||||
|
||||
private static final StringTrieSearch communityPostsFeedGroupSearch = new StringTrieSearch();
|
||||
private final StringFilterGroupList communityPostsFeedGroup = new StringFilterGroupList();
|
||||
|
||||
|
||||
@ -90,18 +81,12 @@ public final class FeedComponentsFilter extends Filter {
|
||||
"cell_button.eml"
|
||||
);
|
||||
|
||||
videoLockup = new StringFilterGroup(
|
||||
null,
|
||||
FEED_VIDEO_PATH
|
||||
);
|
||||
|
||||
addIdentifierCallbacks(
|
||||
chipsShelf,
|
||||
communityPosts,
|
||||
expandableShelf,
|
||||
feedSearchBar,
|
||||
tasteBuilder,
|
||||
videoLockup
|
||||
tasteBuilder
|
||||
);
|
||||
|
||||
// Paths.
|
||||
@ -207,8 +192,7 @@ public final class FeedComponentsFilter extends Filter {
|
||||
notifyMe,
|
||||
playables,
|
||||
subscriptionsChannelBar,
|
||||
ticketShelf,
|
||||
videoLockup
|
||||
ticketShelf
|
||||
);
|
||||
|
||||
final StringFilterGroup communityPostsHomeAndRelatedVideos =
|
||||
@ -267,11 +251,6 @@ public final class FeedComponentsFilter extends Filter {
|
||||
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||
}
|
||||
return false;
|
||||
} else if (matchedGroup == videoLockup) {
|
||||
if (contentIndex == 0 && path.startsWith("CellType|") && inlineExpansion.check(protobufBufferArray).isFiltered()) {
|
||||
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
|
||||
|
Reference in New Issue
Block a user