Skip to content

Commit

Permalink
feat: block suggestions (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
OxrxL committed Jul 3, 2022
1 parent b55cd01 commit ecb7088
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -2,7 +2,6 @@

import android.os.Build;


import androidx.annotation.RequiresApi;

import java.nio.ByteBuffer;
Expand Down Expand Up @@ -72,6 +71,10 @@ private static boolean isShortsShelf() {
private static boolean isCommunityGuidelines() {
return getBoolean("experimental_community_guidelines", true);
}

private static boolean isExperimentalSuggestedForYou() {
return getBoolean("experimental_suggested_for_you", true);
}

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

bufferBlockList.add("ad_cpn");
}
if (isExperimentalSuggestedForYou()) {
bufferBlockList.add("watch-vrecH");
}
if (isExperimentalMovieRemoval()) {
blockList.add("movie_and_show_upsell_card");
blockList.add("compact_movie");
Expand Down

0 comments on commit ecb7088

Please sign in to comment.