Skip to content

Commit

Permalink
feat(YouTube - Layout component filter): Hide videos based on the num…
Browse files Browse the repository at this point in the history
…ber of views
  • Loading branch information
anddea committed Mar 25, 2024
1 parent e8f0731 commit 23fa805
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 7 additions & 6 deletions src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -646,9 +646,9 @@ Some components may not be hidden."</string>
<string name="revanced_hide_shorts_player_navigation_bar_summary_off">Navigation bar is shown.</string>
<string name="revanced_hide_shorts_player_navigation_bar_summary_on">Navigation bar is hidden.</string>
<string name="revanced_hide_shorts_player_navigation_bar_title">Hide navigation bar</string>
<string name="revanced_hide_shorts_player_pivot_button_summary_off">Pivot button is shown.</string>
<string name="revanced_hide_shorts_player_pivot_button_summary_on">Pivot button is hidden.</string>
<string name="revanced_hide_shorts_player_pivot_button_title">Hide pivot button</string>
<string name="revanced_hide_shorts_player_pivot_button_summary_off">Audio button is shown.</string>
<string name="revanced_hide_shorts_player_pivot_button_summary_on">Audio button is hidden.</string>
<string name="revanced_hide_shorts_player_pivot_button_title">Hide audio button</string>
<string name="revanced_hide_shorts_player_subscriptions_button_summary_off">Subscriptions button is shown.</string>
<string name="revanced_hide_shorts_player_subscriptions_button_summary_on">Subscriptions button is hidden.</string>
<string name="revanced_hide_shorts_player_subscriptions_button_title">Hide subscriptions button</string>
Expand Down Expand Up @@ -731,9 +731,10 @@ Known issues:
<string name="revanced_hide_video_with_gray_description_summary">"Hide videos with gray description from search results.
Videos with a gray description include videos that are not related to search terms."</string>
<string name="revanced_hide_video_with_gray_description_title">Hide videos with gray description</string>
<string name="revanced_hide_video_with_low_view_summary">"Hide videos with less than 1,000 views exposed to the home feed.
Some videos, including those from channels you subscribe to, may not be hidden even if they have fewer than 1,000 views."</string>
<string name="revanced_hide_video_with_low_view_title">Hide videos with low views</string>
<string name="revanced_hide_video_with_low_view_summary">"Hide videos with less than N views."</string>
<string name="revanced_hide_video_with_low_view_title">Hide videos based on views</string>
<string name="revanced_hide_video_with_low_view_num_summary">Videos with views less than this number will be hidden.</string>
<string name="revanced_hide_video_with_low_view_num_title">Number of views</string>
<string name="revanced_hide_view_products_summary_off">View products banner is shown.</string>
<string name="revanced_hide_view_products_summary_on">View products banner is hidden.</string>
<string name="revanced_hide_view_products_title">Hide view products banner</string>
Expand Down
5 changes: 3 additions & 2 deletions src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@
<!-- SETTINGS: HIDE_LAYOUT_COMPONENTS
<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" />
<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" />
<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 -->
<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" />
<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 -->

<!-- SETTINGS: HIDE_CHANNEL_PROFILE_COMPONENTS
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_channel_profile_title" />
Expand Down Expand Up @@ -645,7 +646,7 @@
<Preference android:title=" " android:selectable="false" android:summary="@string/pref_about_category" />
<PreferenceScreen android:title="@string/revanced_patches_information" android:summary="@string/revanced_patches_information_summary" >
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_tool_used" />
<Preference android:title="ReVanced Patches" android:selectable="false" android:summary="2.223.0-dev.1" />
<Preference android:title="ReVanced Patches" android:selectable="false" android:summary="2.223.0-dev.2" />
<Preference android:title="ReVanced Integrations" android:selectable="false" android:summary="" />

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

0 comments on commit 23fa805

Please sign in to comment.