Skip to content

Commit f0a2e69

Browse files
committed
feat(YouTube - Settings): Add new settings for Shorts and Player buttons background
1 parent 5271610 commit f0a2e69

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

src/main/resources/youtube/settings/host/values/strings.xml

+9
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,15 @@ Some components may not be hidden."</string>
655655
<string name="revanced_hide_shorts_player_subscriptions_button_summary_off">Subscriptions button is shown.</string>
656656
<string name="revanced_hide_shorts_player_subscriptions_button_summary_on">Subscriptions button is hidden.</string>
657657
<string name="revanced_hide_shorts_player_subscriptions_button_title">Hide subscriptions button</string>
658+
<string name="revanced_hide_shorts_player_video_title_summary_off">Shorts video title is shown.</string>
659+
<string name="revanced_hide_shorts_player_video_title_summary_on">Shorts video title is hidden.</string>
660+
<string name="revanced_hide_shorts_player_video_title_title">Hide Shorts video title</string>
661+
<string name="revanced_hide_shorts_player_sound_metadata_label_summary_off">Sound metadata label is shown.</string>
662+
<string name="revanced_hide_shorts_player_sound_metadata_label_summary_on">Sound metadata label is hidden.</string>
663+
<string name="revanced_hide_shorts_player_sound_metadata_label_title">Hide sound metadata label</string>
664+
<string name="revanced_hide_shorts_player_video_link_label_summary_off">Video link is shown.</string>
665+
<string name="revanced_hide_shorts_player_video_link_label_summary_on">Video link label is hidden.</string>
666+
<string name="revanced_hide_shorts_player_video_link_label_title">Hide video link label</string>
658667
<string name="revanced_hide_shorts_shelf_summary">"Hides Shorts shelves.
659668

660669
Known issue: Official headers in search results will be hidden."</string>

src/main/resources/youtube/settings/xml/revanced_prefs.xml

+9-2
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@
224224
<!-- SETTINGS: HIDE_INFO_CARDS
225225
<SwitchPreference android:title="@string/revanced_hide_info_cards_title" android:key="revanced_hide_info_cards" android:defaultValue="true" android:summaryOn="@string/revanced_hide_info_cards_summary_on" android:summaryOff="@string/revanced_hide_info_cards_summary_off" /> SETTINGS: HIDE_INFO_CARDS -->
226226

227+
<!-- SETTINGS: HIDE_PLAYER_BUTTON_BACKGROUND
228+
<SwitchPreference android:title="@string/revanced_hide_player_button_background_title" android:key="revanced_hide_player_button_background" android:defaultValue="false" android:summaryOn="@string/revanced_hide_player_button_background_summary_on" android:summaryOff="@string/revanced_hide_player_button_background_summary_off" /> SETTINGS: HIDE_PLAYER_BUTTON_BACKGROUND -->
229+
227230
<!-- SETTINGS: HIDE_PREVIOUS_NEXT_BUTTON
228231
<SwitchPreference android:title="@string/revanced_hide_previous_next_button_title" android:key="revanced_hide_previous_next_button" android:defaultValue="true" android:summaryOn="@string/revanced_hide_previous_next_button_summary_on" android:summaryOff="@string/revanced_hide_previous_next_button_summary_off" /> SETTINGS: HIDE_PREVIOUS_NEXT_BUTTON -->
229232

@@ -490,6 +493,9 @@
490493
<SwitchPreference android:title="@string/revanced_hide_shorts_player_subscriptions_button_title" android:key="revanced_hide_shorts_player_subscriptions_button" android:defaultValue="true" android:summaryOn="@string/revanced_hide_shorts_player_subscriptions_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_player_subscriptions_button_summary_off" />
491494
<SwitchPreference android:title="@string/revanced_hide_shorts_player_thanks_button_title" android:key="revanced_hide_shorts_player_thanks_button" android:defaultValue="true" android:summaryOn="@string/revanced_hide_shorts_player_thanks_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_player_thanks_button_summary_off" />
492495
<SwitchPreference android:title="@string/revanced_hide_shorts_player_pivot_button_title" android:key="revanced_hide_shorts_player_pivot_button" android:defaultValue="false" android:summaryOn="@string/revanced_hide_shorts_player_pivot_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_player_pivot_button_summary_off" />
496+
<SwitchPreference android:title="@string/revanced_hide_shorts_player_video_title_title" android:key="revanced_hide_shorts_player_video_title" android:defaultValue="false" android:summaryOn="@string/revanced_hide_shorts_player_video_title_summary_on" android:summaryOff="@string/revanced_hide_shorts_player_video_title_summary_off" />
497+
<SwitchPreference android:title="@string/revanced_hide_shorts_player_sound_metadata_label_title" android:key="revanced_hide_shorts_player_sound_metadata_label" android:defaultValue="true" android:summaryOn="@string/revanced_hide_shorts_player_sound_metadata_label_summary_on" android:summaryOff="@string/revanced_hide_shorts_player_sound_metadata_label_summary_off" />
498+
<SwitchPreference android:title="@string/revanced_hide_shorts_player_video_link_label_title" android:key="revanced_hide_shorts_player_video_link_label" android:defaultValue="true" android:summaryOn="@string/revanced_hide_shorts_player_video_link_label_summary_on" android:summaryOff="@string/revanced_hide_shorts_player_video_link_label_summary_off" />
493499
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_shorts_toolbar_title" />
494500
<SwitchPreference android:title="@string/revanced_hide_shorts_toolbar_banner_title" android:key="revanced_hide_shorts_toolbar_banner" android:defaultValue="false" android:summaryOn="@string/revanced_hide_shorts_toolbar_banner_summary_on" android:summaryOff="@string/revanced_hide_shorts_toolbar_banner_summary_off" />
495501
<SwitchPreference android:title="@string/revanced_hide_shorts_toolbar_camera_button_title" android:key="revanced_hide_shorts_toolbar_camera_button" android:defaultValue="false" android:summaryOn="@string/revanced_hide_shorts_toolbar_camera_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_toolbar_camera_button_summary_off" />
@@ -646,7 +652,7 @@
646652
<Preference android:title=" " android:selectable="false" android:summary="@string/pref_about_category" />
647653
<PreferenceScreen android:title="@string/revanced_patches_information" android:summary="@string/revanced_patches_information_summary" >
648654
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_tool_used" />
649-
<Preference android:title="ReVanced Patches" android:selectable="false" android:summary="2.223.0-dev.2" />
655+
<Preference android:title="ReVanced Patches" android:selectable="false" android:summary="2.223.0-dev.3" />
650656
<Preference android:title="ReVanced Integrations" android:selectable="false" android:summary="" />
651657

652658
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_ads" />
@@ -736,6 +742,7 @@
736742
<Preference android:title="Custom player overlay opacity" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
737743
<Preference android:title="Disable haptic feedback" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
738744
<Preference android:title="Disable speed overlay" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
745+
<Preference android:title="Force hide player buttons background" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
739746
<Preference android:title="Hide autoplay button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
740747
<Preference android:title="Hide captions button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
741748
<Preference android:title="Hide channel watermark" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
@@ -744,7 +751,7 @@
744751
<Preference android:title="Hide filmstrip overlay" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
745752
<Preference android:title="Hide info cards" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
746753
<Preference android:title="Hide music button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
747-
<Preference android:title="Hide player button background" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
754+
<Preference android:title="Hide player buttons background" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
748755
<Preference android:title="Hide player chapters" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
749756
<Preference android:title="Hide previous next button" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>
750757
<Preference android:title="Hide seek message" android:summary="@string/revanced_patches_excluded" android:selectable="false"/>

0 commit comments

Comments
 (0)