From e559ba7bad2611b19dd7c93d042306047d18957d Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Fri, 12 Apr 2024 21:58:42 +0400
Subject: [PATCH] feat(YouTube - Hide Shorts components): Hide `Shop`,
`Location` and `Save sound to playlist` buttons
---
.../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