File tree 4 files changed +17
-6
lines changed
extensions/youtube/src/main/java/app/revanced/extension/youtube
kotlin/app/revanced/patches/youtube/layout/buttons/action
resources/addresources/values
4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,19 @@ public ButtonsFilter() {
68
68
Settings .HIDE_REMIX_BUTTON ,
69
69
"yt_outline_youtube_shorts_plus"
70
70
),
71
+ new ByteArrayFilterGroup (
72
+ Settings .HIDE_THANKS_BUTTON ,
73
+ "yt_outline_dollar_sign_heart"
74
+ ),
75
+ new ByteArrayFilterGroup (
76
+ Settings .HIDE_ASK_BUTTON ,
77
+ "yt_fill_spark"
78
+ ),
71
79
// Check for clip button both here and using a path filter,
72
80
// as there's a chance the path is a generic action button and won't contain 'clip_button'
73
81
new ByteArrayFilterGroup (
74
82
Settings .HIDE_CLIP_BUTTON ,
75
83
"yt_outline_scissors"
76
- ),
77
- new ByteArrayFilterGroup (
78
- Settings .HIDE_THANKS_BUTTON ,
79
- "yt_outline_dollar_sign_heart"
80
84
)
81
85
);
82
86
}
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ public class Settings extends BaseSettings {
199
199
public static final BooleanSetting HIDE_REPORT_BUTTON = new BooleanSetting ("revanced_hide_report_button" , FALSE );
200
200
public static final BooleanSetting HIDE_SHARE_BUTTON = new BooleanSetting ("revanced_hide_share_button" , FALSE );
201
201
public static final BooleanSetting HIDE_THANKS_BUTTON = new BooleanSetting ("revanced_hide_thanks_button" , TRUE );
202
+ public static final BooleanSetting HIDE_ASK_BUTTON = new BooleanSetting ("revanced_hide_ask_button" , FALSE );
202
203
// Player flyout menu items
203
204
public static final BooleanSetting HIDE_PLAYER_FLYOUT_ADDITIONAL_SETTINGS = new BooleanSetting ("revanced_hide_player_flyout_additional_settings" , FALSE );
204
205
public static final BooleanSetting HIDE_PLAYER_FLYOUT_AMBIENT_MODE = new BooleanSetting ("revanced_hide_player_flyout_ambient_mode" , FALSE );
Original file line number Diff line number Diff line change @@ -46,10 +46,11 @@ val hideButtonsPatch = resourcePatch(
46
46
SwitchPreference (" revanced_hide_remix_button" ),
47
47
SwitchPreference (" revanced_hide_download_button" ),
48
48
SwitchPreference (" revanced_hide_thanks_button" ),
49
+ SwitchPreference (" revanced_hide_ask_button" ),
49
50
SwitchPreference (" revanced_hide_clip_button" ),
50
51
SwitchPreference (" revanced_hide_playlist_button" ),
51
- ),
52
- ),
52
+ )
53
+ )
53
54
)
54
55
55
56
addLithoFilter(" Lapp/revanced/extension/youtube/patches/components/ButtonsFilter;" )
Original file line number Diff line number Diff line change @@ -583,6 +583,11 @@ Adjust volume by swiping vertically on the right side of the screen"</string>
583
583
<string name =" revanced_hide_thanks_button_title" >Hide Thanks</string >
584
584
<string name =" revanced_hide_thanks_button_summary_on" >Thanks button is hidden</string >
585
585
<string name =" revanced_hide_thanks_button_summary_off" >Thanks button is shown</string >
586
+ <!-- 'Ask' should be translated with the same localized wording that YouTube displays.
587
+ Button only shows if the user ip is from specific region such as the USA or EU. -->
588
+ <string name =" revanced_hide_ask_button_title" >Hide Ask</string >
589
+ <string name =" revanced_hide_ask_button_summary_on" >Ask button is hidden</string >
590
+ <string name =" revanced_hide_ask_button_summary_off" >Ask button is shown</string >
586
591
<!-- 'Clip' should be translated with the same localized wording that YouTube displays. -->
587
592
<string name =" revanced_hide_clip_button_title" >Hide Clip</string >
588
593
<string name =" revanced_hide_clip_button_summary_on" >Clip button is hidden</string >
You can’t perform that action at this time.
0 commit comments