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 1ef5e7723..307f39ad0 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 @@ -31,6 +31,7 @@ object HideAdsResourcePatch : ResourcePatch() { SwitchPreference("revanced_hide_fullscreen_ads"), SwitchPreference("revanced_hide_buttoned_ads"), SwitchPreference("revanced_hide_paid_promotion_label"), + SwitchPreference("revanced_hide_player_store_shelf"), SwitchPreference("revanced_hide_self_sponsor_ads"), SwitchPreference("revanced_hide_products_banner"), SwitchPreference("revanced_hide_shopping_links"), diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt index dc7333fcf..229f08d30 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/general/HideLayoutComponentsPatch.kt @@ -91,10 +91,6 @@ object HideLayoutComponentsPatch : BytecodePatch( override fun execute(context: BytecodeContext) { AddResourcesPatch(this::class) - SettingsPatch.PreferenceScreen.ADS.addPreferences( - SwitchPreference("revanced_hide_player_store_shelf"), - ) - SettingsPatch.PreferenceScreen.PLAYER.addPreferences( PreferenceScreen( key = "revanced_hide_description_components_screen", diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index cda396bd0..295c84077 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -107,9 +107,6 @@ This is because Crowdin requires temporarily flattening this file and removing t Disable like / subscribe button glow Like and subscribe button will not glow when mentioned Like and subscribe button will glow when mentioned - Hide player shopping shelf - Shopping shelf is hidden - Shopping shelf is shown Hide album cards Album cards are hidden Album cards are shown @@ -339,6 +336,9 @@ This is because Crowdin requires temporarily flattening this file and removing t Hide banner to view products Banner is hidden Banner is shown + Hide player shopping shelf + Shopping shelf is hidden + Shopping shelf is shown Hide shopping links in video description Shopping links are hidden Shopping links are shown