feat(YouTube - Hide layout components): Add "Hide Hype points" (#6230)

This commit is contained in:
ILoveOpenSourceApplications
2025-11-04 12:35:28 +05:30
committed by GitHub
parent cd9ef81354
commit a52c0153b1
4 changed files with 11 additions and 0 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -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"),

View File

@@ -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>