From 5210ac431c191987264865bf8e789ea9f3fdd360 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Fri, 12 Apr 2024 23:44:00 +0400 Subject: [PATCH] feat(YouTube - Hide Shorts components): Hide `Shop`, `Location` and `Save sound to playlist` buttons (#3018) --- .../hide/shorts/HideShortsComponentsResourcePatch.kt | 3 +++ src/main/resources/addresources/values/strings.xml | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt index 8593cd056f..60efa0c019 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsResourcePatch.kt @@ -35,6 +35,9 @@ object HideShortsComponentsResourcePatch : ResourcePatch() { // Everything else. SwitchPreference("revanced_hide_shorts_thanks_button"), + SwitchPreference("revanced_hide_shorts_shop_button"), + SwitchPreference("revanced_hide_shorts_location_button"), + SwitchPreference("revanced_hide_shorts_save_sound_button"), SwitchPreference("revanced_hide_shorts_join_button"), SwitchPreference("revanced_hide_shorts_subscribe_button"), SwitchPreference("revanced_hide_shorts_subscribe_button_paused"), diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index ebedca1461..4ff4e1688d 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -577,6 +577,15 @@ Hide thanks button Thanks button is hidden Thanks button is shown + Hide shop button + Shop button is hidden + Shop button is shown + Hide location button + Location button is hidden + Location button is shown + Hide save sound to playlist button + Save sound to playlist is hidden + save sound to playlist is shown Hide like button Like button is hidden Like button is shown