Skip to content

Commit

Permalink
feat(YouTube - Hide ads): Add Hide promotion alert banner setting
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 authored and anddea committed Sep 6, 2024
1 parent 3e3a43c commit 7eba6b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class BaseSettings {
*/
public static final BooleanSetting HIDE_FULLSCREEN_ADS = new BooleanSetting("revanced_hide_fullscreen_ads", TRUE, true);
public static final BooleanSetting HIDE_FULLSCREEN_ADS_TYPE = new BooleanSetting("revanced_hide_fullscreen_ads_type", TRUE, true);
public static final BooleanSetting HIDE_PROMOTION_ALERT_BANNER = new BooleanSetting("revanced_hide_promotion_alert_banner", TRUE);

public static final BooleanSetting HIDE_SETTINGS_MENU = new BooleanSetting("revanced_hide_settings_menu", FALSE);
public static final StringSetting HIDE_SETTINGS_MENU_FILTER_STRINGS = new StringSetting("revanced_hide_settings_menu_filter_strings", "", true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ public final class AdsFilter extends Filter {

public AdsFilter() {

final StringFilterGroup alertBannerPromo = new StringFilterGroup(
Settings.HIDE_PROMOTION_ALERT_BANNER,
"alert_banner_promo.eml"
);

final StringFilterGroup carouselAd = new StringFilterGroup(
Settings.HIDE_GENERAL_ADS,
"carousel_ad"
);

addIdentifierCallbacks(alertBannerPromo, carouselAd);

final StringFilterGroup merchandise = new StringFilterGroup(
Settings.HIDE_MERCHANDISE_SHELF,
"product_carousel",
Expand Down Expand Up @@ -78,7 +85,5 @@ public AdsFilter() {
viewProducts,
webSearchPanel
);

addIdentifierCallbacks(carouselAd);
}
}

0 comments on commit 7eba6b1

Please sign in to comment.