Skip to content

Commit 23fa805

Browse files
committed
feat(YouTube - Layout component filter): Hide videos based on the number of views
1 parent e8f0731 commit 23fa805

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

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

+7-6
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,9 @@ Some components may not be hidden."</string>
646646
<string name="revanced_hide_shorts_player_navigation_bar_summary_off">Navigation bar is shown.</string>
647647
<string name="revanced_hide_shorts_player_navigation_bar_summary_on">Navigation bar is hidden.</string>
648648
<string name="revanced_hide_shorts_player_navigation_bar_title">Hide navigation bar</string>
649-
<string name="revanced_hide_shorts_player_pivot_button_summary_off">Pivot button is shown.</string>
650-
<string name="revanced_hide_shorts_player_pivot_button_summary_on">Pivot button is hidden.</string>
651-
<string name="revanced_hide_shorts_player_pivot_button_title">Hide pivot button</string>
649+
<string name="revanced_hide_shorts_player_pivot_button_summary_off">Audio button is shown.</string>
650+
<string name="revanced_hide_shorts_player_pivot_button_summary_on">Audio button is hidden.</string>
651+
<string name="revanced_hide_shorts_player_pivot_button_title">Hide audio button</string>
652652
<string name="revanced_hide_shorts_player_subscriptions_button_summary_off">Subscriptions button is shown.</string>
653653
<string name="revanced_hide_shorts_player_subscriptions_button_summary_on">Subscriptions button is hidden.</string>
654654
<string name="revanced_hide_shorts_player_subscriptions_button_title">Hide subscriptions button</string>
@@ -731,9 +731,10 @@ Known issues:
731731
<string name="revanced_hide_video_with_gray_description_summary">"Hide videos with gray description from search results.
732732
Videos with a gray description include videos that are not related to search terms."</string>
733733
<string name="revanced_hide_video_with_gray_description_title">Hide videos with gray description</string>
734-
<string name="revanced_hide_video_with_low_view_summary">"Hide videos with less than 1,000 views exposed to the home feed.
735-
Some videos, including those from channels you subscribe to, may not be hidden even if they have fewer than 1,000 views."</string>
736-
<string name="revanced_hide_video_with_low_view_title">Hide videos with low views</string>
734+
<string name="revanced_hide_video_with_low_view_summary">"Hide videos with less than N views."</string>
735+
<string name="revanced_hide_video_with_low_view_title">Hide videos based on views</string>
736+
<string name="revanced_hide_video_with_low_view_num_summary">Videos with views less than this number will be hidden.</string>
737+
<string name="revanced_hide_video_with_low_view_num_title">Number of views</string>
737738
<string name="revanced_hide_view_products_summary_off">View products banner is shown.</string>
738739
<string name="revanced_hide_view_products_summary_on">View products banner is hidden.</string>
739740
<string name="revanced_hide_view_products_title">Hide view products banner</string>

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@
124124
<!-- SETTINGS: HIDE_LAYOUT_COMPONENTS
125125
<SwitchPreference android:title="@string/revanced_hide_home_feed_membership_video_title" android:key="revanced_hide_home_feed_membership_video" android:defaultValue="false" android:summary="@string/revanced_hide_home_feed_membership_video_summary" />
126126
<SwitchPreference android:title="@string/revanced_hide_video_with_gray_description_title" android:key="revanced_hide_video_with_gray_description" android:defaultValue="false" android:summary="@string/revanced_hide_video_with_gray_description_summary" />
127-
<SwitchPreference android:title="@string/revanced_hide_video_with_low_view_title" android:key="revanced_hide_video_with_low_view" android:defaultValue="false" android:summary="@string/revanced_hide_video_with_low_view_summary" /> SETTINGS: HIDE_LAYOUT_COMPONENTS -->
127+
<SwitchPreference android:title="@string/revanced_hide_video_with_low_view_title" android:key="revanced_hide_video_with_view" android:defaultValue="false" android:summary="@string/revanced_hide_video_with_low_view_summary" />
128+
<app.revanced.integrations.youtube.settingsmenu.ResettableEditTextPreference android:title="@string/revanced_hide_video_with_low_view_num_title" android:key="revanced_hide_video_with_view_num" android:defaultValue="1000" android:summary="@string/revanced_hide_video_with_low_view_num_summary" android:inputType="number" /> SETTINGS: HIDE_LAYOUT_COMPONENTS -->
128129

129130
<!-- SETTINGS: HIDE_CHANNEL_PROFILE_COMPONENTS
130131
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_channel_profile_title" />
@@ -645,7 +646,7 @@
645646
<Preference android:title=" " android:selectable="false" android:summary="@string/pref_about_category" />
646647
<PreferenceScreen android:title="@string/revanced_patches_information" android:summary="@string/revanced_patches_information_summary" >
647648
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_tool_used" />
648-
<Preference android:title="ReVanced Patches" android:selectable="false" android:summary="2.223.0-dev.1" />
649+
<Preference android:title="ReVanced Patches" android:selectable="false" android:summary="2.223.0-dev.2" />
649650
<Preference android:title="ReVanced Integrations" android:selectable="false" android:summary="" />
650651

651652
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_ads" />

0 commit comments

Comments
 (0)