From 9c4c4f05a762d745404101bbc3925ab4eba2deb8 Mon Sep 17 00:00:00 2001
From: ILoveOpenSourceApplications
<117499019+ILoveOpenSourceApplications@users.noreply.github.com>
Date: Sun, 9 Jun 2024 14:45:08 +0530
Subject: [PATCH] feat(YouTube - Comments): Add `Hide Thanks button` and `Hide
'Comments by members' header` options (#3317)
---
.../layout/hide/comments/CommentsPatch.kt | 6 +++--
.../resources/addresources/values/strings.xml | 22 ++++++++++++-------
2 files changed, 18 insertions(+), 10 deletions(-)
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 30a77742b..20c93ce7f 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
@@ -62,9 +62,11 @@ object CommentsPatch : ResourcePatch() {
PreferenceScreen(
"revanced_comments_screen",
preferences = setOf(
- SwitchPreference("revanced_hide_preview_comment"),
+ SwitchPreference("revanced_hide_comments_by_members_header"),
SwitchPreference("revanced_hide_comments_section"),
- SwitchPreference("revanced_hide_comment_timestamp_and_emoji_buttons")
+ SwitchPreference("revanced_hide_comments_preview_comment"),
+ SwitchPreference("revanced_hide_comments_thanks_button"),
+ SwitchPreference("revanced_hide_comments_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 1a85eafc6..8ab54f384 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -502,15 +502,21 @@
Hide crowdfunding box