feat(YouTube - Video description): Add Hide AI-generated video summary (#4636)

This commit is contained in:
ILoveOpenSourceApplications
2025-03-24 21:53:57 +05:30
committed by GitHub
parent e9b7f263f7
commit 521fd48602
4 changed files with 11 additions and 0 deletions

View File

@ -23,6 +23,11 @@ final class DescriptionComponentsFilter extends Filter {
"metadata"
);
final StringFilterGroup aiGeneratedVideoSummarySection = new StringFilterGroup(
Settings.HIDE_AI_GENERATED_VIDEO_SUMMARY_SECTION,
"cell_expandable_metadata.eml"
);
final StringFilterGroup attributesSection = new StringFilterGroup(
Settings.HIDE_ATTRIBUTES_SECTION,
"gaming_section",
@ -67,6 +72,7 @@ final class DescriptionComponentsFilter extends Filter {
);
addPathCallbacks(
aiGeneratedVideoSummarySection,
attributesSection,
infoCardsSection,
howThisWasMadeSection,

View File

@ -177,6 +177,7 @@ public class Settings extends BaseSettings {
public static final BooleanSetting HIDE_COMMENTS_SECTION = new BooleanSetting("revanced_hide_comments_section", FALSE);
public static final BooleanSetting HIDE_COMMENTS_THANKS_BUTTON = new BooleanSetting("revanced_hide_comments_thanks_button", TRUE);
// Description
public static final BooleanSetting HIDE_AI_GENERATED_VIDEO_SUMMARY_SECTION = new BooleanSetting("revanced_hide_ai_generated_video_summary_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_HOW_THIS_WAS_MADE_SECTION = new BooleanSetting("revanced_hide_how_this_was_made_section", FALSE);