Skip to content
This repository was archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
fix(YouTube - Hide comments components): `Hide Comments section in ho…
Browse files Browse the repository at this point in the history
…me feed` setting not working in new component name
  • Loading branch information
inotia00 authored and Francesco146 committed Aug 7, 2024
1 parent f03800d commit 69e87d3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import androidx.annotation.Nullable;

import org.apache.commons.lang3.StringUtils;

import java.util.regex.Pattern;

import app.revanced.integrations.shared.patches.components.Filter;
Expand Down Expand Up @@ -105,7 +107,7 @@ public boolean isFiltered(String path, @Nullable String identifier, String allVa
}
return false;
} else if (matchedGroup == comments) {
if (path.startsWith("home_video_with_context.eml")) {
if (StringUtils.startsWithAny(path, "home_video_with_context", "video_lockup_with_attachment")) {
if (Settings.HIDE_COMMENTS_SECTION_IN_HOME_FEED.get()) {
return super.isFiltered(path, identifier, allValue, protobufBufferArray, matchedGroup, contentType, contentIndex);
}
Expand Down

0 comments on commit 69e87d3

Please sign in to comment.