From c74c77d12568dda54d971d1998f7e73a45543a3b Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 19 Feb 2023 05:24:27 +0100 Subject: [PATCH] feat(youtube/general-ads): hide channel bar Signed-off-by: oSumAtrIX --- .../ad/general/resource/patch/GeneralAdsResourcePatch.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/GeneralAdsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/GeneralAdsResourcePatch.kt index 6a4d8815d2..8db12b6d47 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/GeneralAdsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/GeneralAdsResourcePatch.kt @@ -192,6 +192,13 @@ class GeneralAdsResourcePatch : ResourcePatch { StringResource("revanced_adremover_medical_panel_enabled_summary_on", "Medical panels are hidden"), StringResource("revanced_adremover_medical_panel_enabled_summary_off", "Medical panels are shown") ), + SwitchPreference( + "revanced_hide_channel_bar", + StringResource("revanced_hide_channel_bar_title", "Hide channel bar"), + false, + StringResource("revanced_hide_channel_bar_summary_on", "Channel bar is hidden"), + StringResource("revanced_hide_channel_bar_summary_off", "Channel bar is shown") + ), ) PreferenceScreen.ADS.addPreferences(