mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-07 10:35:49 +01:00
fix: pull down to reload the home page (#129)
This commit is contained in:
parent
b68f8e912e
commit
96d427f2ba
@ -20,6 +20,8 @@ public class GeneralBytecodeAdsPatch {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean containsLithoAd(String value, ByteBuffer buffer) {
|
private static boolean containsLithoAd(String value, ByteBuffer buffer) {
|
||||||
|
String readableBuffer = new String(buffer.array(), StandardCharsets.UTF_8);
|
||||||
|
|
||||||
boolean enabled = false;
|
boolean enabled = false;
|
||||||
for (SettingsEnum setting : SettingsEnum.getAdRemovalSettings()) {
|
for (SettingsEnum setting : SettingsEnum.getAdRemovalSettings()) {
|
||||||
if (setting.getBoolean()) {
|
if (setting.getBoolean()) {
|
||||||
@ -58,8 +60,8 @@ public class GeneralBytecodeAdsPatch {
|
|||||||
|
|
||||||
bufferBlockList.add("YouTube Movies");
|
bufferBlockList.add("YouTube Movies");
|
||||||
}
|
}
|
||||||
if (containsAny(value, "home_video_with_context", "related_video_with_context") &&
|
if (containsAny(readableBuffer, "home_video_with_context", "related_video_with_context") &&
|
||||||
bufferBlockList.stream().anyMatch(new String(buffer.array(), StandardCharsets.UTF_8)::contains)
|
bufferBlockList.stream().anyMatch(readableBuffer::contains)
|
||||||
) return true;
|
) return true;
|
||||||
|
|
||||||
if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {
|
if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user