mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-01 08:12:55 +01:00
fix: home ads (#24)
* Ads test * refactor: cleanup code Co-authored-by: Sculas <contact@sculas.xyz>
This commit is contained in:
parent
a2bb4a5f03
commit
0938f6c59f
@ -114,12 +114,8 @@ 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 (
|
bufferBlockList.stream().anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains)
|
||||||
value.contains("related_video_with_context") &&
|
|
||||||
bufferBlockList
|
|
||||||
.stream()
|
|
||||||
.anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains)
|
|
||||||
) return true;
|
) return true;
|
||||||
|
|
||||||
if (isExperimentalMerchandiseRemoval()) {
|
if (isExperimentalMerchandiseRemoval()) {
|
||||||
@ -128,7 +124,6 @@ public class LithoAdRemoval {
|
|||||||
if (isExperimentalCommunityPostRemoval()) {
|
if (isExperimentalCommunityPostRemoval()) {
|
||||||
blockList.add("post_base_wrapper");
|
blockList.add("post_base_wrapper");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isExperimentalPaidContentRemoval()) {
|
if (isExperimentalPaidContentRemoval()) {
|
||||||
blockList.add("paid_content_overlay");
|
blockList.add("paid_content_overlay");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user