mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-07 01:51:27 +01:00
feat(YouTube - Hide layout components): Add "Hide Hype points" (#6230)
This commit is contained in:
committed by
GitHub
parent
cd9ef81354
commit
a52c0153b1
@@ -63,6 +63,11 @@ final class DescriptionComponentsFilter extends Filter {
|
|||||||
"how_this_was_made_section"
|
"how_this_was_made_section"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
final StringFilterGroup hypePoints = new StringFilterGroup(
|
||||||
|
Settings.HIDE_HYPE_POINTS,
|
||||||
|
"hype_points_factoid"
|
||||||
|
);
|
||||||
|
|
||||||
macroMarkersCarousel = new StringFilterGroup(
|
macroMarkersCarousel = new StringFilterGroup(
|
||||||
null,
|
null,
|
||||||
"macro_markers_carousel.e"
|
"macro_markers_carousel.e"
|
||||||
@@ -96,6 +101,7 @@ final class DescriptionComponentsFilter extends Filter {
|
|||||||
infoCardsSection,
|
infoCardsSection,
|
||||||
horizontalShelf,
|
horizontalShelf,
|
||||||
howThisWasMadeSection,
|
howThisWasMadeSection,
|
||||||
|
hypePoints,
|
||||||
macroMarkersCarousel,
|
macroMarkersCarousel,
|
||||||
podcastSection,
|
podcastSection,
|
||||||
transcriptSection
|
transcriptSection
|
||||||
|
|||||||
@@ -211,6 +211,7 @@ public class Settings extends BaseSettings {
|
|||||||
public static final BooleanSetting HIDE_ATTRIBUTES_SECTION = new BooleanSetting("revanced_hide_attributes_section", FALSE);
|
public static final BooleanSetting HIDE_ATTRIBUTES_SECTION = new BooleanSetting("revanced_hide_attributes_section", FALSE);
|
||||||
public static final BooleanSetting HIDE_CHAPTERS_SECTION = new BooleanSetting("revanced_hide_chapters_section", TRUE);
|
public static final BooleanSetting HIDE_CHAPTERS_SECTION = new BooleanSetting("revanced_hide_chapters_section", TRUE);
|
||||||
public static final BooleanSetting HIDE_HOW_THIS_WAS_MADE_SECTION = new BooleanSetting("revanced_hide_how_this_was_made_section", FALSE);
|
public static final BooleanSetting HIDE_HOW_THIS_WAS_MADE_SECTION = new BooleanSetting("revanced_hide_how_this_was_made_section", FALSE);
|
||||||
|
public static final BooleanSetting HIDE_HYPE_POINTS = new BooleanSetting("revanced_hide_hype_points", FALSE);
|
||||||
public static final BooleanSetting HIDE_INFO_CARDS_SECTION = new BooleanSetting("revanced_hide_info_cards_section", TRUE);
|
public static final BooleanSetting HIDE_INFO_CARDS_SECTION = new BooleanSetting("revanced_hide_info_cards_section", TRUE);
|
||||||
public static final BooleanSetting HIDE_KEY_CONCEPTS_SECTION = new BooleanSetting("revanced_hide_key_concepts_section", FALSE);
|
public static final BooleanSetting HIDE_KEY_CONCEPTS_SECTION = new BooleanSetting("revanced_hide_key_concepts_section", FALSE);
|
||||||
public static final BooleanSetting HIDE_PODCAST_SECTION = new BooleanSetting("revanced_hide_podcast_section", TRUE);
|
public static final BooleanSetting HIDE_PODCAST_SECTION = new BooleanSetting("revanced_hide_podcast_section", TRUE);
|
||||||
|
|||||||
@@ -147,6 +147,7 @@ val hideLayoutComponentsPatch = bytecodePatch(
|
|||||||
SwitchPreference("revanced_hide_chapters_section"),
|
SwitchPreference("revanced_hide_chapters_section"),
|
||||||
SwitchPreference("revanced_hide_info_cards_section"),
|
SwitchPreference("revanced_hide_info_cards_section"),
|
||||||
SwitchPreference("revanced_hide_how_this_was_made_section"),
|
SwitchPreference("revanced_hide_how_this_was_made_section"),
|
||||||
|
SwitchPreference("revanced_hide_hype_points"),
|
||||||
SwitchPreference("revanced_hide_key_concepts_section"),
|
SwitchPreference("revanced_hide_key_concepts_section"),
|
||||||
SwitchPreference("revanced_hide_podcast_section"),
|
SwitchPreference("revanced_hide_podcast_section"),
|
||||||
SwitchPreference("revanced_hide_transcript_section"),
|
SwitchPreference("revanced_hide_transcript_section"),
|
||||||
|
|||||||
@@ -388,6 +388,9 @@ If a Doodle is currently showing in your region and this hide setting is on, the
|
|||||||
<string name="revanced_hide_how_this_was_made_section_title">Hide \'How this content was made\'</string>
|
<string name="revanced_hide_how_this_was_made_section_title">Hide \'How this content was made\'</string>
|
||||||
<string name="revanced_hide_how_this_was_made_section_summary_on">How this content was made section is hidden</string>
|
<string name="revanced_hide_how_this_was_made_section_summary_on">How this content was made section is hidden</string>
|
||||||
<string name="revanced_hide_how_this_was_made_section_summary_off">How this content was made section is shown</string>
|
<string name="revanced_hide_how_this_was_made_section_summary_off">How this content was made section is shown</string>
|
||||||
|
<string name="revanced_hide_hype_points_title">Hide Hype points</string>
|
||||||
|
<string name="revanced_hide_hype_points_summary_on">Hype points are hidden</string>
|
||||||
|
<string name="revanced_hide_hype_points_summary_off">Hype points are shown</string>
|
||||||
<string name="revanced_hide_podcast_section_title">Hide \'Explore the podcast\'</string>
|
<string name="revanced_hide_podcast_section_title">Hide \'Explore the podcast\'</string>
|
||||||
<string name="revanced_hide_podcast_section_summary_on">Explore the podcast section is hidden</string>
|
<string name="revanced_hide_podcast_section_summary_on">Explore the podcast section is hidden</string>
|
||||||
<string name="revanced_hide_podcast_section_summary_off">Explore the podcast section is shown</string>
|
<string name="revanced_hide_podcast_section_summary_off">Explore the podcast section is shown</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user