Skip to content

Commit

Permalink
feat(YouTube/Shorts components): add settings - `Hide floating button…
Browse files Browse the repository at this point in the history
…`, `Hide Trends button`, `Hide Use template button`
  • Loading branch information
inotia00 committed Sep 1, 2024
1 parent de0ccbf commit 166f1a0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,9 @@ The Expand video description option may not work if the entered string does not
<string name="revanced_disable_resuming_shorts_player_title">Disable resuming Shorts player</string>
<string name="revanced_disable_resuming_shorts_player_summary_on">Shorts player will not resume on app startup.</string>
<string name="revanced_disable_resuming_shorts_player_summary_off">Shorts player will resume on app startup.</string>
<string name="revanced_hide_shorts_floating_button_title">Hide floating button</string>
<string name="revanced_hide_shorts_floating_button_summary_on">"Floating buttons like 'Use this sound' are hidden in the Shorts channel tab."</string>
<string name="revanced_hide_shorts_floating_button_summary_off">"Floating buttons like 'Use this sound' are shown in the Shorts channel tab."</string>

<!-- PreferenceScreen: Shorts, PreferenceCategory: Shorts shelf -->
<string name="revanced_preference_category_shorts_shelf">Shorts shelves</string>
Expand Down Expand Up @@ -1071,6 +1074,9 @@ Side effect: Official headers in search results will be hidden."</string>
<string name="revanced_hide_shorts_paid_promotion_label_title">Hide paid promotion label</string>
<string name="revanced_hide_shorts_paid_promotion_label_summary_on">Paid promotion label is hidden.</string>
<string name="revanced_hide_shorts_paid_promotion_label_summary_off">Paid promotion label is shown.</string>
<string name="revanced_hide_shorts_trends_button_title">Hide Trends button</string>
<string name="revanced_hide_shorts_trends_button_summary_on">Trends button is hidden.</string>
<string name="revanced_hide_shorts_trends_button_summary_off">Trends button is shown.</string>
<string name="revanced_hide_shorts_shopping_button_title">Hide Shopping button</string>
<string name="revanced_hide_shorts_shopping_button_summary_on">Shopping button is hidden.</string>
<string name="revanced_hide_shorts_shopping_button_summary_off">Shopping button is shown.</string>
Expand All @@ -1095,6 +1101,9 @@ Side effect: Official headers in search results will be hidden."</string>
<string name="revanced_hide_shorts_use_this_sound_button_title">Hide Use this sound button</string>
<string name="revanced_hide_shorts_use_this_sound_button_summary_on">Use this sound button is hidden.</string>
<string name="revanced_hide_shorts_use_this_sound_button_summary_off">Use this sound button is shown.</string>
<string name="revanced_hide_shorts_use_template_button_title">Hide Use template button</string>
<string name="revanced_hide_shorts_use_template_button_summary_on">Use template button is hidden.</string>
<string name="revanced_hide_shorts_use_template_button_summary_off">Use template button is shown.</string>
<string name="revanced_hide_shorts_info_panel_title">Hide info panels</string>
<string name="revanced_hide_shorts_info_panel_summary_on">Info panels are hidden.</string>
<string name="revanced_hide_shorts_info_panel_summary_off">Info panels are shown.</string>
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@
<SwitchPreference android:title="@string/revanced_hide_shorts_paused_header_title" android:key="revanced_hide_shorts_paused_header" android:summaryOn="@string/revanced_hide_shorts_paused_header_summary_on" android:summaryOff="@string/revanced_hide_shorts_paused_header_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_paused_overlay_buttons_title" android:key="revanced_hide_shorts_paused_overlay_buttons" android:summaryOn="@string/revanced_hide_shorts_paused_overlay_buttons_summary_on" android:summaryOff="@string/revanced_hide_shorts_paused_overlay_buttons_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_paid_promotion_label_title" android:key="revanced_hide_shorts_paid_promotion_label" android:summaryOn="@string/revanced_hide_shorts_paid_promotion_label_summary_on" android:summaryOff="@string/revanced_hide_shorts_paid_promotion_label_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_trends_button_title" android:key="revanced_hide_shorts_trends_button" android:summaryOn="@string/revanced_hide_shorts_trends_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_trends_button_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_shopping_button_title" android:key="revanced_hide_shorts_shopping_button" android:summaryOn="@string/revanced_hide_shorts_shopping_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_shopping_button_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_shop_button_title" android:key="revanced_hide_shorts_shop_button" android:summaryOn="@string/revanced_hide_shorts_shop_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_shop_button_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_super_thanks_button_title" android:key="revanced_hide_shorts_super_thanks_button" android:summaryOn="@string/revanced_hide_shorts_super_thanks_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_super_thanks_button_summary_off" />
Expand All @@ -484,6 +485,7 @@
<SwitchPreference android:title="@string/revanced_hide_shorts_save_sound_button_title" android:key="revanced_hide_shorts_save_sound_button" android:summaryOn="@string/revanced_hide_shorts_save_sound_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_save_sound_button_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_search_suggestions_button_title" android:key="revanced_hide_shorts_search_suggestions_button" android:summaryOn="@string/revanced_hide_shorts_search_suggestions_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_search_suggestions_button_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_use_this_sound_button_title" android:key="revanced_hide_shorts_use_this_sound_button" android:summaryOn="@string/revanced_hide_shorts_use_this_sound_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_use_this_sound_button_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_use_template_button_title" android:key="revanced_hide_shorts_use_template_button" android:summaryOn="@string/revanced_hide_shorts_use_template_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_use_template_button_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_info_panel_title" android:key="revanced_hide_shorts_info_panel" android:summaryOn="@string/revanced_hide_shorts_info_panel_summary_on" android:summaryOff="@string/revanced_hide_shorts_info_panel_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_live_header_title" android:key="revanced_hide_shorts_live_header" android:summaryOn="@string/revanced_hide_shorts_live_header_summary_on" android:summaryOff="@string/revanced_hide_shorts_live_header_summary_off" />
<SwitchPreference android:title="@string/revanced_hide_shorts_channel_bar_title" android:key="revanced_hide_shorts_channel_bar" android:summaryOn="@string/revanced_hide_shorts_channel_bar_summary_on" android:summaryOff="@string/revanced_hide_shorts_channel_bar_summary_off" />
Expand Down Expand Up @@ -520,6 +522,7 @@
<SwitchPreference android:title="@string/revanced_disable_resuming_shorts_player_title" android:key="revanced_disable_resuming_shorts_player" android:summaryOn="@string/revanced_disable_resuming_shorts_player_summary_on" android:summaryOff="@string/revanced_disable_resuming_shorts_player_summary_off" />SETTINGS: DISABLE_RESUMING_SHORTS_PLAYER -->

<!-- SETTINGS: SHORTS_COMPONENTS
<SwitchPreference android:title="@string/revanced_hide_shorts_floating_button_title" android:key="revanced_hide_shorts_floating_button" android:summaryOn="@string/revanced_hide_shorts_floating_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_floating_button_summary_off" />
<PreferenceCategory android:title="@string/revanced_preference_category_shorts_shelf" android:layout="@layout/revanced_settings_preferences_category"/>
<SwitchPreference android:title="@string/revanced_hide_shorts_shelf_title" android:key="revanced_hide_shorts_shelf" android:summary="@string/revanced_hide_shorts_shelf_summary" />
<SwitchPreference android:title="@string/revanced_hide_shorts_shelf_home_related_videos_title" android:key="revanced_hide_shorts_shelf_home_related_videos" android:summaryOn="@string/revanced_hide_shorts_shelf_home_related_videos_summary_on" android:summaryOff="@string/revanced_hide_shorts_shelf_home_related_videos_summary_off" android:dependency="revanced_hide_shorts_shelf" />
Expand Down

0 comments on commit 166f1a0

Please sign in to comment.