Skip to content

Commit

Permalink
fix: revert "pull up to refresh"
Browse files Browse the repository at this point in the history
This reverts commit 96d427f.
  • Loading branch information
oSumAtrIX committed Aug 29, 2022
1 parent 83f248e commit cb7e90c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public static boolean containsAd(String value, ByteBuffer buffer) {
}

private static boolean containsLithoAd(String value, ByteBuffer buffer) {
String readableBuffer = new String(buffer.array(), StandardCharsets.UTF_8);

boolean enabled = false;
for (SettingsEnum setting : SettingsEnum.getAdRemovalSettings()) {
if (setting.getBoolean()) {
Expand Down Expand Up @@ -60,8 +58,8 @@ private static boolean containsLithoAd(String value, ByteBuffer buffer) {

bufferBlockList.add("YouTube Movies");
}
if (containsAny(readableBuffer, "home_video_with_context", "related_video_with_context") &&
bufferBlockList.stream().anyMatch(readableBuffer::contains)
if (containsAny(value, "home_video_with_context", "related_video_with_context") &&
bufferBlockList.stream().anyMatch(new String(buffer.array(), StandardCharsets.UTF_8)::contains)
) return true;

if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {
Expand Down

0 comments on commit cb7e90c

Please sign in to comment.