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<>(); List<String> bufferBlockList = new ArrayList<>();
if (SettingsEnum.ADREMOVER_AD_REMOVAL.getBoolean()) { if (SettingsEnum.ADREMOVER_AD_REMOVAL.getBoolean()) {
blockList.add("_ad"); bufferBlockList.add("/ads.");
blockList.add("ad_badge"); bufferBlockList.add("/googleads.");
blockList.add("ads_video_with_context"); bufferBlockList.add("/pagead/");
blockList.add("cell_divider"); blockList.add("cell_divider");
blockList.add("reels_player_overlay"); blockList.add("reels_player_overlay");
blockList.add("shelf_header"); blockList.add("shelf_header");
blockList.add("text_search_ad_with_description_first");
blockList.add("watch_metadata_app_promo"); blockList.add("watch_metadata_app_promo");
blockList.add("video_display_full_layout");
bufferBlockList.add("ad_cpn");
} }
if (SettingsEnum.ADREMOVER_SUGGESTED_FOR_YOU_REMOVAL.getBoolean()) { if (SettingsEnum.ADREMOVER_SUGGESTED_FOR_YOU_REMOVAL.getBoolean()) {
bufferBlockList.add("watch-vrecH"); bufferBlockList.add("watch-vrecH");