Skip to content

Commit

Permalink
feat(YouTube Music/Hide ads): add Hide promotion alert banner setting
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Sep 5, 2024
1 parent 82777db commit 94f7c5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,10 @@ object AdsPatch : BaseBytecodePatch(
"revanced_hide_premium_renewal",
"true"
)
SettingsPatch.addSwitchPreference(
CategoryType.ADS,
"revanced_hide_promotion_alert_banner",
"true"
)
}
}
2 changes: 2 additions & 0 deletions src/main/resources/music/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ If it is disabled, fullscreen ads are blocked. (there may be side effects)"</str
<string name="revanced_hide_premium_promotion_summary">Hides premium promotion popups.</string>
<string name="revanced_hide_premium_renewal_title">Hide premium renewal banner</string>
<string name="revanced_hide_premium_renewal_summary">Hides the premium renewal banner.</string>
<string name="revanced_hide_promotion_alert_banner_title">Hide promotion alert banner</string>
<string name="revanced_hide_promotion_alert_banner_summary">Hides the promotion alert banner.</string>


<!-- PreferenceScreen: Flyout -->
Expand Down

0 comments on commit 94f7c5b

Please sign in to comment.