feat(YouTube - Hide layout components): Hide player shopping shelf (#3804)

This commit is contained in:
LisoUseInAIKyrios 2024-10-22 22:13:24 -04:00 committed by GitHub
parent a89853cf27
commit 1952f3b3c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -91,6 +91,10 @@ object HideLayoutComponentsPatch : BytecodePatch(
override fun execute(context: BytecodeContext) { override fun execute(context: BytecodeContext) {
AddResourcesPatch(this::class) AddResourcesPatch(this::class)
SettingsPatch.PreferenceScreen.ADS.addPreferences(
SwitchPreference("revanced_hide_player_store_shelf"),
)
SettingsPatch.PreferenceScreen.PLAYER.addPreferences( SettingsPatch.PreferenceScreen.PLAYER.addPreferences(
PreferenceScreen( PreferenceScreen(
key = "revanced_hide_description_components_screen", key = "revanced_hide_description_components_screen",
@ -113,7 +117,7 @@ object HideLayoutComponentsPatch : BytecodePatch(
SwitchPreference("revanced_hide_comments_thanks_button"), SwitchPreference("revanced_hide_comments_thanks_button"),
SwitchPreference("revanced_hide_comments_timestamp_and_emoji_buttons") SwitchPreference("revanced_hide_comments_timestamp_and_emoji_buttons")
), ),
sorting = PreferenceScreen.Sorting.UNSORTED sorting = Sorting.UNSORTED
), ),
SwitchPreference("revanced_hide_channel_bar"), SwitchPreference("revanced_hide_channel_bar"),
SwitchPreference("revanced_hide_channel_guidelines"), SwitchPreference("revanced_hide_channel_guidelines"),

View File

@ -107,6 +107,9 @@ This is because Crowdin requires temporarily flattening this file and removing t
<string name="revanced_disable_like_subscribe_glow_title">Disable like / subscribe button glow</string> <string name="revanced_disable_like_subscribe_glow_title">Disable like / subscribe button glow</string>
<string name="revanced_disable_like_subscribe_glow_summary_on">Like and subscribe button will not glow when mentioned</string> <string name="revanced_disable_like_subscribe_glow_summary_on">Like and subscribe button will not glow when mentioned</string>
<string name="revanced_disable_like_subscribe_glow_summary_off">Like and subscribe button will glow when mentioned</string> <string name="revanced_disable_like_subscribe_glow_summary_off">Like and subscribe button will glow when mentioned</string>
<string name="revanced_hide_player_store_shelf_title">Hide player shopping shelf</string>
<string name="revanced_hide_player_store_shelf_summary_on">Shopping shelf is hidden</string>
<string name="revanced_hide_player_store_shelf_summary_off">Shopping shelf is shown</string>
<string name="revanced_hide_album_cards_title">Hide album cards</string> <string name="revanced_hide_album_cards_title">Hide album cards</string>
<string name="revanced_hide_album_cards_summary_on">Album cards are hidden</string> <string name="revanced_hide_album_cards_summary_on">Album cards are hidden</string>
<string name="revanced_hide_album_cards_summary_off">Album cards are shown</string> <string name="revanced_hide_album_cards_summary_off">Album cards are shown</string>