Skip to content

Commit 3ab5842

Browse files
fix(youtube/hide-video-action-buttons): fix hide action buttons not working for some users (#1959)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
1 parent dcf41a7 commit 3ab5842

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/main/kotlin/app/revanced/patches/youtube/layout/buttons/action/patch/HideButtonsPatch.kt

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,21 @@ class HideButtonsPatch : ResourcePatch {
5151
StringResource("revanced_hide_playlist_button_summary_on", "Playlist button is hidden"),
5252
StringResource("revanced_hide_playlist_button_summary_off", "Playlist button is shown")
5353
),
54+
SwitchPreference(
55+
"revanced_hide_clip_button",
56+
StringResource("revanced_hide_clip_button_title", "Hide clip button"),
57+
false,
58+
StringResource("revanced_hide_clip_button_summary_on", "Clip button is hidden"),
59+
StringResource("revanced_hide_clip_button_summary_off", "Clip button is shown"),
60+
StringResource("revanced_hide_clip_button_user_dialog_message",
61+
"Hiding the clip button might not work reliably. In the case it does not work, it can only be hidden by enabling \\'Hide all other action buttons\\'")
62+
),
5463
SwitchPreference(
5564
"revanced_hide_action_buttons",
5665
StringResource("revanced_hide_action_buttons_title", "Hide all other action buttons"),
5766
false,
58-
StringResource("revanced_hide_action_buttons_summary_on", "Share, remix, clip, thanks, shop, live chat buttons are hidden"),
59-
StringResource("revanced_hide_action_buttons_summary_off", "Share, remix, clip, thanks, shop, live chat buttons are shown")
67+
StringResource("revanced_hide_action_buttons_summary_on", "Share, remix, thanks, shop, live chat buttons are hidden"),
68+
StringResource("revanced_hide_action_buttons_summary_off", "Share, remix, thanks, shop, live chat buttons are shown")
6069
)
6170
),
6271
StringResource("revanced_hide_buttons_summary", "Hide or show buttons under videos")

0 commit comments

Comments
 (0)