From e7b64e154e7fb8edd0037f5e171f4aa3ed9017f8 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 26 Mar 2024 01:56:49 +0100 Subject: [PATCH] feat(YouTube - Hide Shorts components): Hide title and full video link label --- .../layout/hide/shorts/HideShortsComponentsResourcePatch.kt | 6 ++++-- src/main/resources/addresources/values/strings.xml | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt index 2df134ea..58ee5fa9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt @@ -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 { @@ -44,4 +46,4 @@ object HideShortsComponentsResourcePatch : ResourcePatch() { it.type == "dimen" && it.name == "reel_player_right_cell_button_height" }.id } -} \ No newline at end of file +} diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index 96c2c917..19c2521c 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -500,6 +500,12 @@ Hide channel bar Channel bar is hidden Channel bar is shown + Hide Shorts video title + Title is hidden + Title is shown + Hide full video link label + Label is hidden + Label is shown Hide sound button Sound button is hidden Sound button is shown