From 03d2cfafbf977340456598a848858ac9452c853f Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Tue, 23 Apr 2024 19:30:18 +0200 Subject: [PATCH] feat(YouTube - Hide ads): Add option to hide the 'Visit store' button on channel pages (#3077) --- .../patches/youtube/ad/general/HideAdsResourcePatch.kt | 1 + src/main/resources/addresources/values/strings.xml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsResourcePatch.kt index 8cc3ed11..1ef5e772 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/HideAdsResourcePatch.kt @@ -34,6 +34,7 @@ object HideAdsResourcePatch : ResourcePatch() { SwitchPreference("revanced_hide_self_sponsor_ads"), SwitchPreference("revanced_hide_products_banner"), SwitchPreference("revanced_hide_shopping_links"), + SwitchPreference("revanced_hide_visit_store_button"), SwitchPreference("revanced_hide_web_search_results"), SwitchPreference("revanced_hide_merchandise_banners"), ) diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index d2ea5028..bf960966 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -266,6 +266,10 @@ Hide shopping links in video description Shopping links are hidden Shopping links are shown + + Hide the 'Visit store' button on channel pages + Button is hidden + Button is shown Hide web search results Web search results are hidden Web search results are shown