From 94f7c5b79ae99e2fefa5603a465491a35d2649a4 Mon Sep 17 00:00:00 2001
From: inotia00 <108592928+inotia00@users.noreply.github.com>
Date: Thu, 5 Sep 2024 17:35:26 +0900
Subject: [PATCH] feat(YouTube Music/Hide ads): add `Hide promotion alert
banner` setting
---
.../app/revanced/patches/music/ads/general/AdsPatch.kt | 5 +++++
src/main/resources/music/settings/host/values/strings.xml | 2 ++
2 files changed, 7 insertions(+)
diff --git a/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt b/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt
index d8aed25c0..841f0527a 100644
--- a/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/music/ads/general/AdsPatch.kt
@@ -212,5 +212,10 @@ object AdsPatch : BaseBytecodePatch(
"revanced_hide_premium_renewal",
"true"
)
+ SettingsPatch.addSwitchPreference(
+ CategoryType.ADS,
+ "revanced_hide_promotion_alert_banner",
+ "true"
+ )
}
}
diff --git a/src/main/resources/music/settings/host/values/strings.xml b/src/main/resources/music/settings/host/values/strings.xml
index 905bc8af5..417a6d0e4 100644
--- a/src/main/resources/music/settings/host/values/strings.xml
+++ b/src/main/resources/music/settings/host/values/strings.xml
@@ -73,6 +73,8 @@ If it is disabled, fullscreen ads are blocked. (there may be side effects)"Hides premium promotion popups.
Hide premium renewal banner
Hides the premium renewal banner.
+ Hide promotion alert banner
+ Hides the promotion alert banner.