From d75b64595a7ac26faca4c0ae21923b22f6783975 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:57:28 +0530 Subject: [PATCH] feat(YouTube - Description components): Add `Hide 'Key concepts' section` option (#3495) Co-authored-by: ILoveOpenSourceApplications --- .../youtube/layout/hide/general/HideLayoutComponentsPatch.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/general/HideLayoutComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt index 46e87861a..66e025790 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt @@ -97,6 +97,7 @@ object HideLayoutComponentsPatch : BytecodePatch( SwitchPreference("revanced_hide_attributes_section"), SwitchPreference("revanced_hide_chapters_section"), SwitchPreference("revanced_hide_info_cards_section"), + SwitchPreference("revanced_hide_key_concepts_section"), SwitchPreference("revanced_hide_podcast_section"), SwitchPreference("revanced_hide_transcript_section"), ), diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index 7f5ab9d0d..e13b9b65a 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -213,6 +213,9 @@ This is because Crowdin requires temporarily flattening this file and removing t Hide info cards section Info cards section is hidden Info cards section is shown + Hide \'Key concepts\' section + \'Key concepts\' section is hidden + \'Key concepts\' section is shown Hide Transcript section Transcript section is hidden Transcript section is shown