From e4c2450ebac4cacae64a81060de8c146ba542e37 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Fri, 24 Feb 2023 04:13:53 +0100 Subject: [PATCH] feat(youtube/general-ads): hide image shelf from search results 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 3c0bd695..8f74e7b6 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 @@ -220,6 +220,13 @@ class GeneralAdsResourcePatch : ResourcePatch { StringResource("revanced_hide_channel_bar_summary_on", "Channel bar is hidden"), StringResource("revanced_hide_channel_bar_summary_off", "Channel bar is shown") ), + SwitchPreference( + "revanced_hide_image_shelf", + StringResource("revanced_hide_image_shelf", "Hide image shelf in search results"), + true, + StringResource("revanced_hide_image_shelf_summary_on", "Image shelf is hidden"), + StringResource("revanced_hide_image_shelf_summary_off", "Image shelf is shown") + ), ) PreferenceScreen.ADS.addPreferences(