mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-07 10:35:49 +01:00
fix(YouTube - Hide keyword content): Filter Shorts found in horizontal shelves
This commit is contained in:
parent
0d5c6e87d2
commit
75fa5797f7
@ -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…
Reference in New Issue
Block a user