Skip to content

Commit f0cc415

Browse files
feat(YouTube - Comments): Add Hide 'Create a Short' button option (#3333)
Co-authored-by: ILoveOpenSourceApplications <[email protected]>
1 parent c0f8dda commit f0cc415

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ object CommentsPatch : ResourcePatch() {
6464
preferences = setOf(
6565
SwitchPreference("revanced_hide_comments_by_members_header"),
6666
SwitchPreference("revanced_hide_comments_section"),
67+
SwitchPreference("revanced_hide_comments_create_a_short_button"),
6768
SwitchPreference("revanced_hide_comments_preview_comment"),
6869
SwitchPreference("revanced_hide_comments_thanks_button"),
6970
SwitchPreference("revanced_hide_comments_timestamp_and_emoji_buttons")

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,9 @@
508508
<string name="revanced_hide_comments_section_title">Hide comments section</string>
509509
<string name="revanced_hide_comments_section_summary_on">Comments section is hidden</string>
510510
<string name="revanced_hide_comments_section_summary_off">Comments section is shown</string>
511+
<string name="revanced_hide_comments_create_a_short_button_title">Hide \'Create a Short\' button</string>
512+
<string name="revanced_hide_comments_create_a_short_button_summary_on">\'Create a Short\' button is hidden</string>
513+
<string name="revanced_hide_comments_create_a_short_button_summary_off">\'Create a Short\' button is shown</string>
511514
<string name="revanced_hide_comments_preview_comment_title">Hide preview comment</string>
512515
<string name="revanced_hide_comments_preview_comment_summary_on">Preview comment is hidden</string>
513516
<string name="revanced_hide_comments_preview_comment_summary_off">Preview comment is shown</string>

0 commit comments

Comments
 (0)