From 7efe5aefb252a2ed908907ff218b879e2ad1a331 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Tue, 23 Apr 2024 21:03:15 +0400
Subject: [PATCH] feat(YouTube - Comments): Add option to hide timestamp and
emoji buttons (#3076)
---
.../patches/youtube/layout/hide/comments/CommentsPatch.kt | 3 ++-
src/main/resources/addresources/values/strings.xml | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
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 9a6ee70e60..789701ba8a 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
@@ -58,7 +58,8 @@ object CommentsPatch : ResourcePatch() {
"revanced_comments_screen",
preferences = setOf(
SwitchPreference("revanced_hide_preview_comment"),
- SwitchPreference("revanced_hide_comments_section")
+ SwitchPreference("revanced_hide_comments_section"),
+ SwitchPreference("revanced_hide_comment_timestamp_and_emoji_buttons")
),
sorting = PreferenceScreen.Sorting.UNSORTED
)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 18df77e942..73ce3556c0 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -503,6 +503,9 @@
Hide comments section
Comment section is hidden
Comment section is shown
+ Hide timestamp and emoji buttons
+ Comment timestamp and emoji buttons are hidden
+ Comment timestamp and emoji buttons are shown
Hide crowdfunding box