From be9e24420fda80903e44e2e2278ea4904ecac4e1 Mon Sep 17 00:00:00 2001 From: ILoveOpenSourceApplications <117499019+ILoveOpenSourceApplications@users.noreply.github.com> Date: Tue, 18 Jun 2024 04:19:08 +0530 Subject: [PATCH] feat(YouTube - Comments): Add `Hide 'Create a Short' button` option (#3333) Co-authored-by: ILoveOpenSourceApplications --- .../patches/youtube/layout/hide/comments/CommentsPatch.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/comments/CommentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt index 20c93ce7..51280ac1 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt @@ -64,6 +64,7 @@ object CommentsPatch : ResourcePatch() { preferences = setOf( SwitchPreference("revanced_hide_comments_by_members_header"), SwitchPreference("revanced_hide_comments_section"), + SwitchPreference("revanced_hide_comments_create_a_short_button"), SwitchPreference("revanced_hide_comments_preview_comment"), SwitchPreference("revanced_hide_comments_thanks_button"), SwitchPreference("revanced_hide_comments_timestamp_and_emoji_buttons") diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index 8ab54f38..1bbd46d9 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -508,6 +508,9 @@ Hide comments section Comments section is hidden Comments section is shown + Hide \'Create a Short\' button + \'Create a Short\' button is hidden + \'Create a Short\' button is shown Hide preview comment Preview comment is hidden Preview comment is shown