mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-28 12:50:19 +02:00
feat(YouTube Music/Hide general ads): add Hide paid promotion banner
settings
This commit is contained in:
parent
d8aec4abd2
commit
49507936e9
@ -102,7 +102,7 @@ object GeneralAdsPatch : BytecodePatch(
|
||||
ShowDialogCommandFingerprint.result?.let {
|
||||
it.mutableMethod.apply {
|
||||
// In this method, custom dialog is created and shown.
|
||||
// There were no issues despite adding “return-void” to the first index.
|
||||
// There were no issues despite adding “return-void” to the first index.
|
||||
//
|
||||
// If an issue occurs due to patching due to server-side changes in the future,
|
||||
// Find the instruction whose name is "show" in [MethodReference] and click the 'AlertDialog.BUTTON_POSITIVE' button.
|
||||
@ -197,6 +197,11 @@ object GeneralAdsPatch : BytecodePatch(
|
||||
"revanced_hide_music_ads",
|
||||
"true"
|
||||
)
|
||||
SettingsPatch.addMusicPreference(
|
||||
CategoryType.ADS,
|
||||
"revanced_hide_paid_promotion",
|
||||
"true"
|
||||
)
|
||||
SettingsPatch.addMusicPreference(
|
||||
CategoryType.ADS,
|
||||
"revanced_hide_premium_promotion",
|
||||
|
@ -176,6 +176,8 @@ Some features may not work properly in the old player layout."</string>
|
||||
<string name="revanced_hide_navigation_label_title">Hide navigation label</string>
|
||||
<string name="revanced_hide_new_playlist_button_summary">Hides the \"New playlist\" button in the library.</string>
|
||||
<string name="revanced_hide_new_playlist_button_title">Hide new playlist button</string>
|
||||
<string name="revanced_hide_paid_promotion_summary">Hides paid promotion banner.</string>
|
||||
<string name="revanced_hide_paid_promotion_title">Hide paid promotion banner</string>
|
||||
<string name="revanced_hide_playlist_card_summary">Hides the playlist card from the homepage.</string>
|
||||
<string name="revanced_hide_playlist_card_title">Hide playlist card</string>
|
||||
<string name="revanced_hide_premium_promotion_summary">Hides premium promotion popups.</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user