Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit ecb7088

Browse files
author
OxrxL
authored
feat: block suggestions (#46)
1 parent b55cd01 commit ecb7088

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

app/src/main/java/app/revanced/integrations/adremover/LithoAdRemoval.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import android.os.Build;
44

5-
65
import androidx.annotation.RequiresApi;
76

87
import java.nio.ByteBuffer;
@@ -72,6 +71,10 @@ private static boolean isShortsShelf() {
7271
private static boolean isCommunityGuidelines() {
7372
return getBoolean("experimental_community_guidelines", true);
7473
}
74+
75+
private static boolean isExperimentalSuggestedForYou() {
76+
return getBoolean("experimental_suggested_for_you", true);
77+
}
7578

7679
@RequiresApi(api = Build.VERSION_CODES.N)
7780
public static boolean containsAd(String value, ByteBuffer buffer) {
@@ -105,6 +108,9 @@ public static boolean containsAd(String value, ByteBuffer buffer) {
105108

106109
bufferBlockList.add("ad_cpn");
107110
}
111+
if (isExperimentalSuggestedForYou()) {
112+
bufferBlockList.add("watch-vrecH");
113+
}
108114
if (isExperimentalMovieRemoval()) {
109115
blockList.add("movie_and_show_upsell_card");
110116
blockList.add("compact_movie");

0 commit comments

Comments
 (0)