fix: consolidate ad filters (#140)

This commit is contained in:
OxrxL 2022-09-16 00:00:52 +02:00 committed by GitHub
parent d7b1bc12fb
commit 8a39551aba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,17 +32,14 @@ public class GeneralBytecodeAdsPatch {
List<String> bufferBlockList = new ArrayList<>();
if (SettingsEnum.ADREMOVER_AD_REMOVAL.getBoolean()) {
blockList.add("_ad");
blockList.add("ad_badge");
blockList.add("ads_video_with_context");
bufferBlockList.add("/ads.");
bufferBlockList.add("/googleads.");
bufferBlockList.add("/pagead/");
blockList.add("cell_divider");
blockList.add("reels_player_overlay");
blockList.add("shelf_header");
blockList.add("text_search_ad_with_description_first");
blockList.add("watch_metadata_app_promo");
blockList.add("video_display_full_layout");
bufferBlockList.add("ad_cpn");
}
if (SettingsEnum.ADREMOVER_SUGGESTED_FOR_YOU_REMOVAL.getBoolean()) {
bufferBlockList.add("watch-vrecH");