Skip to content

Commit e240921

Browse files
feat(YouTube - Comments): Add Hide Thanks button and Hide 'Comments by members' header options (#3317)
1 parent a8b14d5 commit e240921

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ object CommentsPatch : ResourcePatch() {
6262
PreferenceScreen(
6363
"revanced_comments_screen",
6464
preferences = setOf(
65-
SwitchPreference("revanced_hide_preview_comment"),
65+
SwitchPreference("revanced_hide_comments_by_members_header"),
6666
SwitchPreference("revanced_hide_comments_section"),
67-
SwitchPreference("revanced_hide_comment_timestamp_and_emoji_buttons")
67+
SwitchPreference("revanced_hide_comments_preview_comment"),
68+
SwitchPreference("revanced_hide_comments_thanks_button"),
69+
SwitchPreference("revanced_hide_comments_timestamp_and_emoji_buttons")
6870
),
6971
sorting = PreferenceScreen.Sorting.UNSORTED
7072
)

src/main/resources/addresources/values/strings.xml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -502,15 +502,21 @@
502502
<patch id="layout.hide.comments.CommentsPatch">
503503
<string name="revanced_comments_screen_title">Comments</string>
504504
<string name="revanced_comments_screen_summary">Hide or show comments section components</string>
505-
<string name="revanced_hide_preview_comment_title">Hide preview comment</string>
506-
<string name="revanced_hide_preview_comment_summary_on">Preview comment is hidden</string>
507-
<string name="revanced_hide_preview_comment_summary_off">Preview comment is shown</string>
505+
<string name="revanced_hide_comments_by_members_header_title">Hide \'Comments by members\' header</string>
506+
<string name="revanced_hide_comments_by_members_header_summary_on">\'Comments by members\' header is hidden</string>
507+
<string name="revanced_hide_comments_by_members_header_summary_off">\'Comments by members\' header is shown</string>
508508
<string name="revanced_hide_comments_section_title">Hide comments section</string>
509-
<string name="revanced_hide_comments_section_summary_on">Comment section is hidden</string>
510-
<string name="revanced_hide_comments_section_summary_off">Comment section is shown</string>
511-
<string name="revanced_hide_comment_timestamp_and_emoji_buttons_title">Hide timestamp and emoji buttons</string>
512-
<string name="revanced_hide_comment_timestamp_and_emoji_buttons_summary_on">Comment timestamp and emoji buttons are hidden</string>
513-
<string name="revanced_hide_comment_timestamp_and_emoji_buttons_summary_off">Comment timestamp and emoji buttons are shown</string>
509+
<string name="revanced_hide_comments_section_summary_on">Comments section is hidden</string>
510+
<string name="revanced_hide_comments_section_summary_off">Comments section is shown</string>
511+
<string name="revanced_hide_comments_preview_comment_title">Hide preview comment</string>
512+
<string name="revanced_hide_comments_preview_comment_summary_on">Preview comment is hidden</string>
513+
<string name="revanced_hide_comments_preview_comment_summary_off">Preview comment is shown</string>
514+
<string name="revanced_hide_comments_thanks_button_title">Hide thanks button</string>
515+
<string name="revanced_hide_comments_thanks_button_summary_on">Thanks button is hidden</string>
516+
<string name="revanced_hide_comments_thanks_button_summary_off">Thanks button is shown</string>
517+
<string name="revanced_hide_comments_timestamp_and_emoji_buttons_title">Hide timestamp and emoji buttons</string>
518+
<string name="revanced_hide_comments_timestamp_and_emoji_buttons_summary_on">Timestamp and emoji buttons are hidden</string>
519+
<string name="revanced_hide_comments_timestamp_and_emoji_buttons_summary_off">Timestamp and emoji buttons are shown</string>
514520
</patch>
515521
<patch id="layout.hide.crowdfundingbox.CrowdfundingBoxResourcePatch">
516522
<string name="revanced_hide_crowdfunding_box_title">Hide crowdfunding box</string>

0 commit comments

Comments
 (0)