File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -68,15 +68,19 @@ public ButtonsFilter() {
6868 Settings .HIDE_REMIX_BUTTON ,
6969 "yt_outline_youtube_shorts_plus"
7070 ),
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+ ),
7179 // Check for clip button both here and using a path filter,
7280 // as there's a chance the path is a generic action button and won't contain 'clip_button'
7381 new ByteArrayFilterGroup (
7482 Settings .HIDE_CLIP_BUTTON ,
7583 "yt_outline_scissors"
76- ),
77- new ByteArrayFilterGroup (
78- Settings .HIDE_THANKS_BUTTON ,
79- "yt_outline_dollar_sign_heart"
8084 )
8185 );
8286 }
Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ public class Settings extends BaseSettings {
199199 public static final BooleanSetting HIDE_REPORT_BUTTON = new BooleanSetting ("revanced_hide_report_button" , FALSE );
200200 public static final BooleanSetting HIDE_SHARE_BUTTON = new BooleanSetting ("revanced_hide_share_button" , FALSE );
201201 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 );
202203 // Player flyout menu items
203204 public static final BooleanSetting HIDE_PLAYER_FLYOUT_ADDITIONAL_SETTINGS = new BooleanSetting ("revanced_hide_player_flyout_additional_settings" , FALSE );
204205 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(
4646 SwitchPreference (" revanced_hide_remix_button" ),
4747 SwitchPreference (" revanced_hide_download_button" ),
4848 SwitchPreference (" revanced_hide_thanks_button" ),
49+ SwitchPreference (" revanced_hide_ask_button" ),
4950 SwitchPreference (" revanced_hide_clip_button" ),
5051 SwitchPreference (" revanced_hide_playlist_button" ),
51- ),
52- ),
52+ )
53+ )
5354 )
5455
5556 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>
583583 <string name =" revanced_hide_thanks_button_title" >Hide Thanks</string >
584584 <string name =" revanced_hide_thanks_button_summary_on" >Thanks button is hidden</string >
585585 <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 >
586591 <!-- 'Clip' should be translated with the same localized wording that YouTube displays. -->
587592 <string name =" revanced_hide_clip_button_title" >Hide Clip</string >
588593 <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