Skip to content

Commit

Permalink
feat(YouTube - Hide Shorts Component): Add new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
YT-Advanced committed Mar 26, 2024
1 parent ee7bca0 commit 9b4bcbe
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ ReX Patches.
| `Enable old player background` | Adds an option to return the player background to the old style. Deprecated on YT Music 6.34.51+. | 6.21.52 ~ 6.33.52 |
| `Enable old player layout` | Adds an option to return the player layout to the old style. Deprecated on YT Music 6.31.55+. | 6.21.52 ~ 6.33.52 |
| `Enable old style library shelf` | Adds an option to return the library tab to the old style. | 6.21.52+ |
| `Enable old style miniplayer` | Adds an option to return the miniplayer to the old style. | 6.21.52+ |
| `Enable old style miniplayer` | Adds an option to return the miniplayer to the old style. | 6.21.52 ~ 6.41.59 |
| `Enable opus codec` | Adds an option use the opus audio codec instead of the mp4a audio codec. | 6.21.52+ |
| `Enable playback speed` | Adds an option to add a playback speed button to the flyout panel. | 6.21.52+ |
| `Enable zen mode` | Adds an option to change the player background to light grey to reduce eye strain. Deprecated on YT Music 6.34.51+. | 6.21.52 ~ 6.33.52 |
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.parallel = true
org.gradle.caching = true
kotlin.code.style = official
version = 2.220.9
version = 2.220.10
2 changes: 1 addition & 1 deletion patches.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,17 @@ Gray description refers to:
<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>
<string name="revanced_hide_shorts_player_video_title_summary_off">Shorts video title is shown.</string>
<string name="revanced_hide_shorts_player_video_title_summary_on">Shorts video title is hidden.</string>
<string name="revanced_hide_shorts_player_video_title_title">Hide Shorts video title</string>

<string name="revanced_hide_shorts_player_sound_metadata_label_summary_off">Sound metadata label is shown.</string>
<string name="revanced_hide_shorts_player_sound_metadata_label_summary_on">Sound metadata label is hidden.</string>
<string name="revanced_hide_shorts_player_sound_metadata_label_title">Hide sound metadata label</string>
<string name="revanced_hide_shorts_player_video_link_label_summary_off">Video link is shown.</string>
<string name="revanced_hide_shorts_player_video_link_label_summary_on">Video link label is hidden.</string>
<string name="revanced_hide_shorts_player_video_link_label_title">Hide video link label</string>

<string name="revanced_hide_shorts_shelf_summary">"Hides Shorts shelves.

Known issue: Official headers in search results will be hidden."</string>
Expand Down
6 changes: 5 additions & 1 deletion src/main/resources/youtube/settings/xml/revanced_prefs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,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.220.9" />
<Preference android:title="ReVanced Patches" android:selectable="false" android:summary="2.220.10" />
<Preference android:title="ReVanced Integrations" android:selectable="false" android:summary="" />

<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_ads" />
Expand Down Expand Up @@ -706,6 +706,10 @@
<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" />
<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" />
<SwitchPreference android:title="@string/revanced_hide_shorts_player_pivot_button_title" android:key="revanced_hide_shorts_player_pivot_button" android:defaultValue="true" android:summaryOn="@string/revanced_hide_shorts_player_pivot_button_summary_on" android:summaryOff="@string/revanced_hide_shorts_player_pivot_button_summary_off" />
<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" />
<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" />
<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" />
<Preference android:title=" " android:selectable="false" android:summary="@string/revanced_shorts_toolbar_title" />
<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" />
<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" />
Expand Down

0 comments on commit 9b4bcbe

Please sign in to comment.