From 2d1093251d5d50b476ca44f76acb9a8597b37aea Mon Sep 17 00:00:00 2001 From: 0xrxL <120989892+0xrxL@users.noreply.github.com> Date: Mon, 26 Dec 2022 18:28:10 +0100 Subject: [PATCH] feat(youtube/general-ads-patch): hide guidelines for subscriber (#1352) --- .../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 af5afeafb..80f46ec0a 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 @@ -102,6 +102,13 @@ class GeneralAdsResourcePatch : ResourcePatch { "Community guidelines are shown" ) ), + SwitchPreference( + "revanced_adremover_subscribers_community_guidelines_removal", + StringResource("revanced_adremover_subscribers_community_guidelines_enabled_title", "Hide subscribers community guidelines"), + true, + StringResource("revanced_adremover_subscribers_community_guidelines_enabled_summary_on", "Subscribers community guidelines are hidden"), + StringResource("revanced_adremover_subscribers_community_guidelines_enabled_summary_off", "Subscribers community guidelines are shown") + ), SwitchPreference( "revanced_adremover_emergency_box_removal", StringResource("revanced_adremover_emergency_box_enabled_title", "Hide emergency boxes"),