Skip to content

Commit

Permalink
feat(YouTube/Shorts components): add Hide in channel setting (Hide …
Browse files Browse the repository at this point in the history
…the Shorts shelf on the channel home tab)
  • Loading branch information
inotia00 committed Oct 18, 2024
1 parent b4a67d3 commit 5b45fb8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,12 @@ The Expand video description option may not work if the entered string does not
<string name="revanced_hide_shorts_shelf_summary">"Hides Shorts shelves.

Side effect: Official headers in search results will be hidden."</string>
<string name="revanced_hide_shorts_shelf_channel_title">Hide in channel</string>
<string name="revanced_hide_shorts_shelf_channel_summary_on">"Hidden in channel.

Info:
• Only shelves with the Shorts header on the home tab are hidden."</string>
<string name="revanced_hide_shorts_shelf_channel_summary_off">Shown in channel.</string>
<string name="revanced_hide_shorts_shelf_home_related_videos_title">Hide in home feed and related videos</string>
<string name="revanced_hide_shorts_shelf_home_related_videos_summary_on">Hidden in home feed and related videos.</string>
<string name="revanced_hide_shorts_shelf_home_related_videos_summary_off">Shown in home feed and related videos.</string>
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@
<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_channel_title" android:key="revanced_hide_shorts_shelf_channel" android:summaryOn="@string/revanced_hide_shorts_shelf_channel_summary_on" android:summaryOff="@string/revanced_hide_shorts_shelf_channel_summary_off" android:dependency="revanced_hide_shorts_shelf" />
<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" />
<SwitchPreference android:title="@string/revanced_hide_shorts_shelf_subscriptions_title" android:key="revanced_hide_shorts_shelf_subscriptions" android:summaryOn="@string/revanced_hide_shorts_shelf_subscriptions_summary_on" android:summaryOff="@string/revanced_hide_shorts_shelf_subscriptions_summary_off" android:dependency="revanced_hide_shorts_shelf" />
<SwitchPreference android:title="@string/revanced_hide_shorts_shelf_search_title" android:key="revanced_hide_shorts_shelf_search" android:summaryOn="@string/revanced_hide_shorts_shelf_search_summary_on" android:summaryOff="@string/revanced_hide_shorts_shelf_search_summary_off" android:dependency="revanced_hide_shorts_shelf" />
Expand Down

0 comments on commit 5b45fb8

Please sign in to comment.