From 0a507b6e2c6857aa17324ca155170f85e02a7c34 Mon Sep 17 00:00:00 2001 From: MarcaDian Date: Tue, 8 Oct 2024 11:33:11 +0300 Subject: [PATCH 1/3] feat(YouTube - Hide Shorts components): Hide 'Use template' button --- .../layout/hide/shorts/HideShortsComponentsResourcePatch.kt | 1 + src/main/resources/addresources/values/strings.xml | 3 +++ 2 files changed, 4 insertions(+) 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 9d3c8464ed..6e369b83b2 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 @@ -42,6 +42,7 @@ object HideShortsComponentsResourcePatch : ResourcePatch() { SwitchPreference("revanced_hide_shorts_subscribe_button"), SwitchPreference("revanced_hide_shorts_paused_overlay_buttons"), SwitchPreference("revanced_hide_shorts_save_sound_button"), + SwitchPreference("revanced_hide_shorts_use_template_button"), SwitchPreference("revanced_hide_shorts_shop_button"), SwitchPreference("revanced_hide_shorts_tagged_products"), SwitchPreference("revanced_hide_shorts_stickers"), diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index ae7dd0af91..8b361c5a3c 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -639,6 +639,9 @@ This is because Crowdin requires temporarily flattening this file and removing t Hide save music button Save music is hidden Save music is shown + Hide use template button + Use template is hidden + Use template is shown Hide search suggestions Search suggestions are hidden Search suggestions are shown From f98c6137fa6ce5e1ef5a52c675da4ad8d1ceae1a Mon Sep 17 00:00:00 2001 From: MarcaDian Date: Thu, 10 Oct 2024 10:20:04 +0300 Subject: [PATCH 2/3] adjust text --- src/main/resources/addresources/values/strings.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index 8b361c5a3c..2d8ee50618 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -637,11 +637,11 @@ This is because Crowdin requires temporarily flattening this file and removing t Location label is hidden Location label is shown Hide save music button - Save music is hidden - Save music is shown + Save music button is hidden + Save music button is shown Hide use template button - Use template is hidden - Use template is shown + Use template button is hidden + Use template button is shown Hide search suggestions Search suggestions are hidden Search suggestions are shown From c5f3cc1575781167ac561815dcdc5cf8ac723c48 Mon Sep 17 00:00:00 2001 From: MarcaDian Date: Thu, 10 Oct 2024 10:25:02 +0300 Subject: [PATCH 3/3] Hide `Upcoming` & `Green screen` buttons --- .../layout/hide/shorts/HideShortsComponentsResourcePatch.kt | 2 ++ src/main/resources/addresources/values/strings.xml | 6 ++++++ 2 files changed, 8 insertions(+) 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 6e369b83b2..866d8fb19b 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 @@ -43,6 +43,8 @@ object HideShortsComponentsResourcePatch : ResourcePatch() { SwitchPreference("revanced_hide_shorts_paused_overlay_buttons"), SwitchPreference("revanced_hide_shorts_save_sound_button"), SwitchPreference("revanced_hide_shorts_use_template_button"), + SwitchPreference("revanced_hide_shorts_upcoming_button"), + SwitchPreference("revanced_hide_shorts_green_screen_button"), SwitchPreference("revanced_hide_shorts_shop_button"), SwitchPreference("revanced_hide_shorts_tagged_products"), SwitchPreference("revanced_hide_shorts_stickers"), diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index 2d8ee50618..c1625a4e26 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -642,6 +642,12 @@ This is because Crowdin requires temporarily flattening this file and removing t Hide use template button Use template button is hidden Use template button is shown + Hide upcoming button + Upcoming button is hidden + Upcoming button is shown + Hide green screen button + Green screen button is hidden + Green screen button is shown Hide search suggestions Search suggestions are hidden Search suggestions are shown