feat(YouTube - Hide video action buttons): Add "Hide Promote button" setting
This commit is contained in:
parent
26c6420de5
commit
40ac8e1142
4 changed files with 11 additions and 1 deletions
|
|
@ -87,6 +87,10 @@ final class ButtonsFilter extends Filter {
|
|||
new ByteArrayFilterGroup(
|
||||
Settings.HIDE_HYPE_BUTTON,
|
||||
"yt_outline_star_shooting"
|
||||
),
|
||||
new ByteArrayFilterGroup(
|
||||
Settings.HIDE_PROMOTE_BUTTON,
|
||||
"yt_outline_megaphone"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -225,6 +225,7 @@ public class Settings extends BaseSettings {
|
|||
public static final BooleanSetting HIDE_DOWNLOAD_BUTTON = new BooleanSetting("revanced_hide_download_button", FALSE);
|
||||
public static final BooleanSetting HIDE_HYPE_BUTTON = new BooleanSetting("revanced_hide_hype_button", FALSE);
|
||||
public static final BooleanSetting HIDE_LIKE_DISLIKE_BUTTON = new BooleanSetting("revanced_hide_like_dislike_button", FALSE);
|
||||
public static final BooleanSetting HIDE_PROMOTE_BUTTON = new BooleanSetting("revanced_hide_promote_button", FALSE);
|
||||
public static final BooleanSetting HIDE_REMIX_BUTTON = new BooleanSetting("revanced_hide_remix_button", TRUE);
|
||||
public static final BooleanSetting HIDE_REPORT_BUTTON = new BooleanSetting("revanced_hide_report_button", FALSE);
|
||||
public static final BooleanSetting HIDE_SAVE_BUTTON = new BooleanSetting("revanced_hide_save_button", FALSE);
|
||||
|
|
|
|||
|
|
@ -42,14 +42,15 @@ val hideButtonsPatch = resourcePatch(
|
|||
SwitchPreference("revanced_hide_ask_button"),
|
||||
SwitchPreference("revanced_hide_clip_button"),
|
||||
SwitchPreference("revanced_hide_download_button"),
|
||||
SwitchPreference("revanced_hide_hype_button"),
|
||||
SwitchPreference("revanced_hide_like_dislike_button"),
|
||||
SwitchPreference("revanced_hide_promote_button"),
|
||||
SwitchPreference("revanced_hide_remix_button"),
|
||||
SwitchPreference("revanced_hide_report_button"),
|
||||
SwitchPreference("revanced_hide_save_button"),
|
||||
SwitchPreference("revanced_hide_share_button"),
|
||||
SwitchPreference("revanced_hide_stop_ads_button"),
|
||||
SwitchPreference("revanced_hide_thanks_button"),
|
||||
SwitchPreference("revanced_hide_hype_button"),
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -648,6 +648,10 @@ Adjust volume by swiping vertically on the right side of the screen"</string>
|
|||
<string name="revanced_hide_hype_button_title">Hide Hype button</string>
|
||||
<string name="revanced_hide_hype_button_summary_on">Hype button is hidden</string>
|
||||
<string name="revanced_hide_hype_button_summary_off">Hype button is shown</string>
|
||||
<!-- 'Promote' should be translated with the same localized wording that YouTube displays. -->
|
||||
<string name="revanced_hide_promote_button_title">Hide Promote</string>
|
||||
<string name="revanced_hide_promote_button_summary_on">Promote button is hidden</string>
|
||||
<string name="revanced_hide_promote_button_summary_off">Promote button is shown</string>
|
||||
<!-- 'Thanks' should be translated with the same localized wording that YouTube displays. -->
|
||||
<string name="revanced_hide_thanks_button_title">Hide Thanks</string>
|
||||
<string name="revanced_hide_thanks_button_summary_on">Thanks button is hidden</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue