fix(YouTube - Hide Shorts components): Resolve Shorts header not being hidden
Co-authored-by: ILoveOpenSourceApplications <117499019+iloveopensourceapplications@users.noreply.github.com>
This commit is contained in:
parent
b826db02e3
commit
3c46a2d2e8
1 changed files with 0 additions and 9 deletions
|
|
@ -71,7 +71,6 @@ public final class ShortsFilter extends Filter {
|
|||
private final StringFilterGroup shortsCompactFeedVideo;
|
||||
private final ByteArrayFilterGroup shortsCompactFeedVideoBuffer;
|
||||
private final StringFilterGroup channelProfile;
|
||||
private final ByteArrayFilterGroup channelProfileShelfHeaderBuffer;
|
||||
private final StringFilterGroup useSoundButton;
|
||||
private final ByteArrayFilterGroup useSoundButtonBuffer;
|
||||
private final StringFilterGroup useTemplateButton;
|
||||
|
|
@ -112,11 +111,6 @@ public final class ShortsFilter extends Filter {
|
|||
"shorts_pivot_item"
|
||||
);
|
||||
|
||||
channelProfileShelfHeaderBuffer = new ByteArrayFilterGroup(
|
||||
Settings.HIDE_SHORTS_CHANNEL,
|
||||
"Shorts"
|
||||
);
|
||||
|
||||
// Feed Shorts shelf header.
|
||||
// Use a different filter group for this pattern, as it requires an additional check after matching.
|
||||
shelfHeaderIdentifier = new StringFilterGroup(
|
||||
|
|
@ -481,9 +475,6 @@ public final class ShortsFilter extends Filter {
|
|||
if (contentIndex != 0) {
|
||||
return false;
|
||||
}
|
||||
if (!channelProfileShelfHeaderBuffer.check(buffer).isFiltered()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return shouldHideShortsFeedItems();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue