From f71c4068bc646d02954b59fac4756f1419c55dbe Mon Sep 17 00:00:00 2001 From: MarcaD <152095496+MarcaDian@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:10:53 +0300 Subject: [PATCH] feat(YouTube - Hide Shorts components): Add option to hide `Use template`, `Upcoming`, `Green screen` buttons (#3752) --- .../shorts/HideShortsComponentsResourcePatch.kt | 3 +++ src/main/resources/addresources/values/strings.xml | 13 +++++++++++-- 2 files changed, 14 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 9d3c8464e..866d8fb19 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,9 @@ 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_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 ae7dd0af9..c1625a4e2 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -637,8 +637,17 @@ 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 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