From f4eda8c8d111cc856d5878a32ddca3f7c2e0df31 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 2 Oct 2023 01:13:00 +0200 Subject: [PATCH] feat(YouTube - Hide layout components): Hide search result shelf header --- .../hide/general/HideLayoutComponentsPatch.kt | 15 +++++++++++++++ 1 file changed, 15 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 7b727d58b..d88ad6cd7 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 @@ -70,6 +70,21 @@ object HideLayoutComponentsPatch : BytecodePatch( StringResource("revanced_hide_timed_reactions_summary_on", "Timed reactions are hidden"), StringResource("revanced_hide_timed_reactions_summary_off", "Timed reactions are shown") ), + SwitchPreference( + "revanced_hide_search_result_shelf_header", + StringResource( + "revanced_hide_search_result_shelf_header_title", + "Hide search result shelf header" + ), + StringResource( + "revanced_hide_search_result_shelf_header_summary_on", + "Shelf header is hidden" + ), + StringResource( + "revanced_hide_search_result_shelf_header_summary_off", + "Shelf header is shown" + ) + ), SwitchPreference( "revanced_hide_channel_guidelines", StringResource("revanced_hide_channel_guidelines_title", "Hide channel guidelines"),