mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-16 07:46:48 +01:00
fix(YouTube - Hide keyword content): Filter Shorts found in horizontal shelves
This commit is contained in:
parent
6de92e9143
commit
3b4b31fc41
@ -100,7 +100,8 @@ final class KeywordContentFilter extends Filter {
|
|||||||
private final StringFilterGroup containsFilter = new StringFilterGroup(
|
private final StringFilterGroup containsFilter = new StringFilterGroup(
|
||||||
null,
|
null,
|
||||||
"modern_type_shelf_header_content.eml",
|
"modern_type_shelf_header_content.eml",
|
||||||
"shorts_lockup_cell.eml" // Part of 'shorts_shelf_carousel.eml'
|
"shorts_lockup_cell.eml", // Part of 'shorts_shelf_carousel.eml'
|
||||||
|
"video_card.eml" // Shorts that appear in a horizontal shelf.
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -167,6 +168,7 @@ final class KeywordContentFilter extends Filter {
|
|||||||
if (sentence.isEmpty()) {
|
if (sentence.isEmpty()) {
|
||||||
return sentence;
|
return sentence;
|
||||||
}
|
}
|
||||||
|
|
||||||
final int delimiter = ' ';
|
final int delimiter = ' ';
|
||||||
// Use code points and not characters to handle unicode surrogates.
|
// Use code points and not characters to handle unicode surrogates.
|
||||||
int[] codePoints = sentence.codePoints().toArray();
|
int[] codePoints = sentence.codePoints().toArray();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user