mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-21 01:07:32 +01:00
feat: block suggestions (#46)
This commit is contained in:
parent
b55cd0153c
commit
ecb708898e
@ -2,7 +2,6 @@ package app.revanced.integrations.adremover;
|
|||||||
|
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
|
|
||||||
|
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
@ -72,6 +71,10 @@ public class LithoAdRemoval {
|
|||||||
private static boolean isCommunityGuidelines() {
|
private static boolean isCommunityGuidelines() {
|
||||||
return getBoolean("experimental_community_guidelines", true);
|
return getBoolean("experimental_community_guidelines", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static boolean isExperimentalSuggestedForYou() {
|
||||||
|
return getBoolean("experimental_suggested_for_you", true);
|
||||||
|
}
|
||||||
|
|
||||||
@RequiresApi(api = Build.VERSION_CODES.N)
|
@RequiresApi(api = Build.VERSION_CODES.N)
|
||||||
public static boolean containsAd(String value, ByteBuffer buffer) {
|
public static boolean containsAd(String value, ByteBuffer buffer) {
|
||||||
@ -105,6 +108,9 @@ public class LithoAdRemoval {
|
|||||||
|
|
||||||
bufferBlockList.add("ad_cpn");
|
bufferBlockList.add("ad_cpn");
|
||||||
}
|
}
|
||||||
|
if (isExperimentalSuggestedForYou()) {
|
||||||
|
bufferBlockList.add("watch-vrecH");
|
||||||
|
}
|
||||||
if (isExperimentalMovieRemoval()) {
|
if (isExperimentalMovieRemoval()) {
|
||||||
blockList.add("movie_and_show_upsell_card");
|
blockList.add("movie_and_show_upsell_card");
|
||||||
blockList.add("compact_movie");
|
blockList.add("compact_movie");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user