mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-12-01 00:02:55 +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 androidx.annotation.RequiresApi;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
@ -73,6 +72,10 @@ public class LithoAdRemoval {
|
||||
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) {
|
||||
try {
|
||||
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user