From 1b71f893bb9fd8511833b8895031c8d8122a6efb Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 1 Oct 2023 05:07:30 +0200 Subject: [PATCH] feat(YouTube - Hide layout components): Hide "Join" button --- .../layout/hide/general/HideLayoutComponentsPatch.kt | 7 +++++++ 1 file changed, 7 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 1dd1d77c8d..7b727d58ba 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 @@ -51,6 +51,13 @@ object HideLayoutComponentsPatch : BytecodePatch( StringResource("revanced_hide_gray_separator_summary_on", "Gray separators are hidden"), StringResource("revanced_hide_gray_separator_summary_off", "Gray separators are shown") ), + SwitchPreference( + "revanced_hide_join_membership_button", + StringResource("revanced_hide_join_membership_button_title", "Hide \"Join\" button"), + StringResource("revanced_hide_join_membership_button_summary_on", "Button is hidden"), + StringResource("revanced_hide_join_membership_button_summary_off", "Button is shown") + ), + SwitchPreference( "revanced_hide_notify_me_button", StringResource("revanced_hide_notify_me_button_title", "Hide \"Notify me\" button"),