From 0198a436f97b127a2a5dd283644254f9a0ae3e43 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Tue, 18 Jun 2024 04:23:56 +0530 Subject: [PATCH] fix(YouTube - Hide description components): Replace `Hide game section` and `Hide music section` with `Hide attributes section` (#3327) Co-authored-by: ILoveOpenSourceApplications --- .../hide/general/HideLayoutComponentsPatch.kt | 5 ++-- .../resources/addresources/values/strings.xml | 23 ++++++++----------- 2 files changed, 12 insertions(+), 16 deletions(-) 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 b1d8dbf2..acd4d105 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 @@ -94,10 +94,9 @@ object HideLayoutComponentsPatch : BytecodePatch( PreferenceScreen( key = "revanced_hide_description_components_screen", preferences = setOf( - SwitchPreference("revanced_hide_chapters"), + SwitchPreference("revanced_hide_attributes_section"), + SwitchPreference("revanced_hide_chapters_section"), SwitchPreference("revanced_hide_info_cards_section"), - SwitchPreference("revanced_hide_game_section"), - SwitchPreference("revanced_hide_music_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 1bbd46d9..57dba5ac 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -198,22 +198,19 @@ Hide chips shelf Chips shelf is hidden Chips shelf is shown + Hide attributes section + \'Featured places\', Games and Music sections are hidden + \'Featured places\', Games and Music sections are shown + Hide Chapters section + Chapters section is hidden + Chapters section is shown + Hide \'Explore the podcast\' section + \'Explore the podcast\' section is hidden + \'Explore the podcast\' section is shown Hide info cards section Info cards section is hidden Info cards section is shown - Hide chapters - Chapters are hidden - Chapters are shown - Hide game section - Game section is hidden - Game section is shown - Hide music section - Music section is hidden - Music section is shown - Hide podcast section - Podcast section is hidden - Podcast section is shown - Hide transcript section + Hide Transcript section Transcript section is hidden Transcript section is shown Video description