feat: block suggestions (#46)

This commit is contained in:
OxrxL 2022-07-03 15:27:11 +02:00 committed by GitHub
parent b55cd0153c
commit ecb708898e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,6 @@ package app.revanced.integrations.adremover;
import android.os.Build;
import androidx.annotation.RequiresApi;
import java.nio.ByteBuffer;
@ -72,6 +71,10 @@ public class LithoAdRemoval {
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) {
@ -105,6 +108,9 @@ public class LithoAdRemoval {
bufferBlockList.add("ad_cpn");
}
if (isExperimentalSuggestedForYou()) {
bufferBlockList.add("watch-vrecH");
}
if (isExperimentalMovieRemoval()) {
blockList.add("movie_and_show_upsell_card");
blockList.add("compact_movie");