Skip to content

Commit

Permalink
feat(YouTube - Hide Shorts components): Hide title and full video lin…
Browse files Browse the repository at this point in the history
…k label
  • Loading branch information
oSumAtrIX committed Mar 26, 2024
1 parent 2df0892 commit e7b64e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ object HideShortsComponentsResourcePatch : ResourcePatch() {
SwitchPreference("revanced_hide_shorts_share_button"),
SwitchPreference("revanced_hide_shorts_info_panel"),
SwitchPreference("revanced_hide_shorts_channel_bar"),
SwitchPreference("revanced_hide_shorts_video_title"),
SwitchPreference("revanced_hide_shorts_full_video_link_label"),
SwitchPreference("revanced_hide_shorts_sound_button"),
SwitchPreference("revanced_hide_shorts_navigation_bar")
SwitchPreference("revanced_hide_shorts_navigation_bar"),
)

ResourceMappingPatch.resourceMappings.find {
Expand All @@ -44,4 +46,4 @@ object HideShortsComponentsResourcePatch : ResourcePatch() {
it.type == "dimen" && it.name == "reel_player_right_cell_button_height"
}.id
}
}
}
6 changes: 6 additions & 0 deletions src/main/resources/addresources/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,12 @@
<string name="revanced_hide_shorts_channel_bar_title">Hide channel bar</string>
<string name="revanced_hide_shorts_channel_bar_summary_on">Channel bar is hidden</string>
<string name="revanced_hide_shorts_channel_bar_summary_off">Channel bar is shown</string>
<string name="revanced_hide_shorts_video_title_title">Hide Shorts video title</string>
<string name="revanced_hide_shorts_video_title_summary_on">Title is hidden</string>
<string name="revanced_hide_shorts_video_title_summary_off">Title is shown</string>
<string name="revanced_hide_shorts_full_video_link_label_title">Hide full video link label</string>
<string name="revanced_hide_shorts_full_video_link_label_summary_on">Label is hidden</string>
<string name="revanced_hide_shorts_full_video_link_label_summary_off">Label is shown</string>
<string name="revanced_hide_shorts_sound_button_title">Hide sound button</string>
<string name="revanced_hide_shorts_sound_button_summary_on">Sound button is hidden</string>
<string name="revanced_hide_shorts_sound_button_summary_off">Sound button is shown</string>
Expand Down

0 comments on commit e7b64e1

Please sign in to comment.