From 04608d32e88d184e4662a71498d7a49c1fbbdb25 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 23 Oct 2023 21:46:38 +0200 Subject: [PATCH] feat(YouTube - Hide layout components): Hide video quality menu footer --- .../patches/components/LayoutComponentsFilter.java | 6 ++++++ .../app/revanced/integrations/settings/SettingsEnum.java | 1 + 2 files changed, 7 insertions(+) diff --git a/app/src/main/java/app/revanced/integrations/patches/components/LayoutComponentsFilter.java b/app/src/main/java/app/revanced/integrations/patches/components/LayoutComponentsFilter.java index a5882d22..21134ae7 100644 --- a/app/src/main/java/app/revanced/integrations/patches/components/LayoutComponentsFilter.java +++ b/app/src/main/java/app/revanced/integrations/patches/components/LayoutComponentsFilter.java @@ -120,6 +120,11 @@ public final class LayoutComponentsFilter extends Filter { "inline_expander" ); + final var videoQualityMenuFooter = new StringFilterGroup( + SettingsEnum.HIDE_VIDEO_QUALITY_MENU_FOOTER, + "quality_sheet_footer" + ); + final var chapters = new StringFilterGroup( SettingsEnum.HIDE_CHAPTERS, "macro_markers_carousel" @@ -196,6 +201,7 @@ public final class LayoutComponentsFilter extends Filter { joinMembership, medicalPanel, notifyMe, + videoQualityMenuFooter, infoPanel, subscribersCommunityGuidelines, channelGuidelines, diff --git a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java index a6f47755..cec74084 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -55,6 +55,7 @@ public enum SettingsEnum { HIDE_CHANNEL_BAR("revanced_hide_channel_bar", BOOLEAN, FALSE), HIDE_CHANNEL_MEMBER_SHELF("revanced_hide_channel_member_shelf", BOOLEAN, TRUE), HIDE_EXPANDABLE_CHIP("revanced_hide_expandable_chip", BOOLEAN, TRUE), + HIDE_VIDEO_QUALITY_MENU_FOOTER("revanced_hide_video_quality_menu_footer", BOOLEAN, TRUE), HIDE_CHAPTERS("revanced_hide_chapters", BOOLEAN, TRUE), HIDE_COMMUNITY_GUIDELINES("revanced_hide_community_guidelines", BOOLEAN, TRUE), HIDE_COMMUNITY_POSTS("revanced_hide_community_posts", BOOLEAN, FALSE),