mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-05-01 07:04:27 +02:00
refactor: use containsAny
helper method (#27)
This commit is contained in:
parent
9b1dce42ed
commit
d9268bc0fa
@ -112,7 +112,7 @@ public class LithoAdRemoval {
|
|||||||
|
|
||||||
bufferBlockList.add("YouTube Movies");
|
bufferBlockList.add("YouTube Movies");
|
||||||
}
|
}
|
||||||
if ((value.contains("home_video_with_context") || value.contains("related_video_with_context")) &&
|
if (containsAny(value, "home_video_with_context", "related_video_with_context") &&
|
||||||
bufferBlockList.stream().anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains)
|
bufferBlockList.stream().anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains)
|
||||||
) return true;
|
) return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user