From 7ad5f2aef922f00c881707c4084399d6557b9cfc Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 1 Jun 2023 00:12:08 +0200 Subject: [PATCH] feat(youtube/hide-ads): hide mix playlists --- .../ad/general/resource/patch/HideAdsResourcePatch.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/HideAdsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/HideAdsResourcePatch.kt index 4491d432626..22d81268920 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/HideAdsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/HideAdsResourcePatch.kt @@ -194,6 +194,12 @@ class HideAdsResourcePatch : ResourcePatch { StringResource("revanced_hide_latest_posts_ads_summary_on", "Latest posts are hidden"), StringResource("revanced_hide_latest_posts_ads_summary_off", "Latest posts are shown") ), + SwitchPreference( + "revanced_hide_mix_playlists", + StringResource("revanced_hide_mix_playlists_title", "Hide mix playlists"), + StringResource("revanced_hide_mix_playlists_summary_on", "Mix playlists are hidden"), + StringResource("revanced_hide_mix_playlists_summary_off", "Mix playlists are shown") + ), ) PreferenceScreen.ADS.addPreferences(