Skip to content

Commit

Permalink
fix(YouTube/Hide ads): Hide view products banner is not hidden (unt…
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Oct 18, 2024
1 parent 5bd1eda commit e2a1f44
Showing 1 changed file with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,6 @@ public AdsFilter() {
"_image_layout"
);

// Unchecked keywords:
final StringFilterGroup generalAdsLegacyIdentifier = new StringFilterGroup(
Settings.HIDE_GENERAL_ADS,
"carousel_headered_layout",
"hero_promo_image",
"lumiere_promo_carousel",
"primetime_promo",
"product_details",
"text_image_button_layout",
"video_display_carousel_button",
"watch_metadata_app_promo"
);

final StringFilterGroup merchandise = new StringFilterGroup(
Settings.HIDE_MERCHANDISE_SHELF,
"product_carousel",
Expand Down Expand Up @@ -112,7 +99,6 @@ public AdsFilter() {
addIdentifierCallbacks(
alertBannerPromo,
generalAdsIdentifier,
generalAdsLegacyIdentifier,
merchandise,
paidContent,
selfSponsor,
Expand All @@ -125,9 +111,20 @@ public AdsFilter() {
final StringFilterGroup generalAdsPath = new StringFilterGroup(
Settings.HIDE_GENERAL_ADS,
"carousel_ad",
"legal_disclosure"
"carousel_headered_layout",
"hero_promo_image",
"legal_disclosure",
"lumiere_promo_carousel",
"primetime_promo",
"product_details",
"text_image_button_layout",
"video_display_carousel_button",
"watch_metadata_app_promo"
);

addPathCallbacks(generalAdsPath);
addPathCallbacks(
generalAdsPath,
viewProducts
);
}
}

0 comments on commit e2a1f44

Please sign in to comment.