mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-11 05:36:17 +00:00
feat(YouTube - Hide video action buttons): Add "Hide Hype button" setting
This commit is contained in:
@@ -83,6 +83,10 @@ final class ButtonsFilter extends Filter {
|
||||
new ByteArrayFilterGroup(
|
||||
Settings.HIDE_CLIP_BUTTON,
|
||||
"yt_outline_scissors"
|
||||
),
|
||||
new ByteArrayFilterGroup(
|
||||
Settings.HIDE_HYPE_BUTTON,
|
||||
"yt_outline_star_shooting"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -223,6 +223,7 @@ public class Settings extends BaseSettings {
|
||||
public static final BooleanSetting HIDE_ASK_BUTTON = new BooleanSetting("revanced_hide_ask_button", FALSE);
|
||||
public static final BooleanSetting HIDE_CLIP_BUTTON = new BooleanSetting("revanced_hide_clip_button", TRUE);
|
||||
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_REMIX_BUTTON = new BooleanSetting("revanced_hide_remix_button", TRUE);
|
||||
public static final BooleanSetting HIDE_REPORT_BUTTON = new BooleanSetting("revanced_hide_report_button", FALSE);
|
||||
|
||||
@@ -49,6 +49,7 @@ val hideButtonsPatch = resourcePatch(
|
||||
SwitchPreference("revanced_hide_share_button"),
|
||||
SwitchPreference("revanced_hide_stop_ads_button"),
|
||||
SwitchPreference("revanced_hide_thanks_button"),
|
||||
SwitchPreference("revanced_hide_hype_button"),
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -631,7 +631,7 @@ Adjust volume by swiping vertically on the right side of the screen"</string>
|
||||
<string name="revanced_hide_stop_ads_button_summary_on">Stop ads button is hidden</string>
|
||||
<string name="revanced_hide_stop_ads_button_summary_off">Stop ads button is shown</string>
|
||||
<!-- 'Report' should be translated with the same localized wording that YouTube displays.
|
||||
This button usually appears only on live streams. -->
|
||||
This button usually only shows on live streams. -->
|
||||
<string name="revanced_hide_report_button_title">Hide Report</string>
|
||||
<string name="revanced_hide_report_button_summary_on">Report button is hidden</string>
|
||||
<string name="revanced_hide_report_button_summary_off">Report button is shown</string>
|
||||
@@ -643,12 +643,17 @@ Adjust volume by swiping vertically on the right side of the screen"</string>
|
||||
<string name="revanced_hide_download_button_title">Hide Download</string>
|
||||
<string name="revanced_hide_download_button_summary_on">Download button is hidden</string>
|
||||
<string name="revanced_hide_download_button_summary_off">Download button is shown</string>
|
||||
<!-- 'Hype' should be translated with the same localized wording that YouTube displays.
|
||||
This button only shows on videos uploaded by the logged in user. -->
|
||||
<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>
|
||||
<!-- '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>
|
||||
<string name="revanced_hide_thanks_button_summary_off">Thanks button is shown</string>
|
||||
<!-- 'Ask' should be translated with the same localized wording that YouTube displays.
|
||||
This button only shows up if the user ip is from specific region such as the USA or EU. -->
|
||||
This button only shows if the user ip is from specific region such as the USA or EU. -->
|
||||
<string name="revanced_hide_ask_button_title">Hide Ask</string>
|
||||
<string name="revanced_hide_ask_button_summary_on">Ask button is hidden</string>
|
||||
<string name="revanced_hide_ask_button_summary_off">Ask button is shown</string>
|
||||
|
||||
Reference in New Issue
Block a user