Skip to content

Commit

Permalink
fix: revert consolidating ad filters
Browse files Browse the repository at this point in the history
This reverts commit 8a39551.
  • Loading branch information
oSumAtrIX committed Sep 15, 2022
1 parent 481b8d6 commit f96dc38
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ private static boolean containsLithoAd(String value, ByteBuffer buffer) {
List<String> bufferBlockList = new ArrayList<>();

if (SettingsEnum.ADREMOVER_AD_REMOVAL.getBoolean()) {
bufferBlockList.add("/ads.");
bufferBlockList.add("/googleads.");
bufferBlockList.add("/pagead/");

blockList.add("_ad");
blockList.add("ad_badge");
blockList.add("ads_video_with_context");
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");
Expand Down

0 comments on commit f96dc38

Please sign in to comment.