feat(YouTube - Hide video description components): Add Hide How this content was made section (#4355)

This commit is contained in:
ILoveOpenSourceApplications 2025-01-27 14:06:13 +05:30 committed by GitHub
parent 440b41ff9b
commit 68ec54ef85
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 0 deletions

View file

@ -45,6 +45,11 @@ final class DescriptionComponentsFilter extends Filter {
"transcript_section"
);
final StringFilterGroup howThisWasMadeSection = new StringFilterGroup(
Settings.HIDE_HOW_THIS_WAS_MADE_SECTION,
"how_this_was_made_section"
);
macroMarkersCarousel = new StringFilterGroup(
null,
"macro_markers_carousel.eml"
@ -64,6 +69,7 @@ final class DescriptionComponentsFilter extends Filter {
addPathCallbacks(
attributesSection,
infoCardsSection,
howThisWasMadeSection,
podcastSection,
transcriptSection,
macroMarkersCarousel

View file

@ -179,6 +179,7 @@ public class Settings extends BaseSettings {
// Description
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_HOW_THIS_WAS_MADE_SECTION = new BooleanSetting("revanced_hide_how_this_was_made_section", FALSE);
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_PODCAST_SECTION = new BooleanSetting("revanced_hide_podcast_section", TRUE);

View file

@ -147,6 +147,7 @@ val hideLayoutComponentsPatch = bytecodePatch(
SwitchPreference("revanced_hide_attributes_section"),
SwitchPreference("revanced_hide_chapters_section"),
SwitchPreference("revanced_hide_info_cards_section"),
SwitchPreference("revanced_hide_how_this_was_made_section"),
SwitchPreference("revanced_hide_key_concepts_section"),
SwitchPreference("revanced_hide_podcast_section"),
SwitchPreference("revanced_hide_transcript_section"),

View file

@ -287,6 +287,9 @@ You will not be notified of any unexpected events."</string>
<string name="revanced_hide_chapters_section_title">Hide Chapters section</string>
<string name="revanced_hide_chapters_section_summary_on">Chapters section is hidden</string>
<string name="revanced_hide_chapters_section_summary_off">Chapters section is shown</string>
<string name="revanced_hide_content_section_title">Hide \'How this content was made\' section</string>
<string name="revanced_hide_content_section_summary_on">\'How this content was made\' section is hidden</string>
<string name="revanced_hide_content_section_summary_off">\'How this content was made\' section is shown</string>
<string name="revanced_hide_podcast_section_title">Hide \'Explore the podcast\' section</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>