From 8c99321df4db696156330fc90dd547c1345d880e Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Sat, 28 Sep 2024 21:02:56 -0400
Subject: [PATCH] feat(YouTube - Hide Shorts components): Add `Hide save
music`, `Hide stickers` (#3710)
---
.../hide/shorts/HideShortsComponentsResourcePatch.kt | 3 +--
src/main/resources/addresources/values/strings.xml | 12 ++++++------
2 files changed, 7 insertions(+), 8 deletions(-)
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 a3c58a30b..c3ce3a0cc 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
@@ -10,7 +10,6 @@ import app.revanced.patches.youtube.layout.hide.shorts.HideShortsComponentsPatch
import app.revanced.patches.youtube.layout.hide.shorts.HideShortsComponentsPatch.hideShortsWidget
import app.revanced.patches.youtube.misc.settings.SettingsPatch
import app.revanced.util.findElementByAttributeValueOrThrow
-import org.w3c.dom.Element
@Patch(dependencies = [SettingsPatch::class, ResourceMappingPatch::class, AddResourcesPatch::class])
object HideShortsComponentsResourcePatch : ResourcePatch() {
@@ -42,9 +41,9 @@ object HideShortsComponentsResourcePatch : ResourcePatch() {
SwitchPreference("revanced_hide_shorts_subscribe_button"),
SwitchPreference("revanced_hide_shorts_paused_overlay_buttons"),
SwitchPreference("revanced_hide_shorts_save_sound_button"),
- SwitchPreference("revanced_hide_shorts_use_this_sound_button"),
SwitchPreference("revanced_hide_shorts_shop_button"),
SwitchPreference("revanced_hide_shorts_tagged_products"),
+ SwitchPreference("revanced_hide_shorts_stickers"),
SwitchPreference("revanced_hide_shorts_search_suggestions"),
SwitchPreference("revanced_hide_shorts_super_thanks_button"),
SwitchPreference("revanced_hide_shorts_location_label"),
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index 49520bf00..c9dc87f33 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -628,15 +628,15 @@ This is because Crowdin requires temporarily flattening this file and removing t
Hide location label
Location label is hidden
Location label is shown
- Hide save sound to playlist button
- Save sound to playlist is hidden
- Save sound to playlist is shown
- Hide use this sound button
- Use this sound button is hidden
- Use this sound button is shown
+ Hide save music button
+ Save music is hidden
+ Save music is shown
Hide search suggestions
Search suggestions are hidden
Search suggestions are shown
+ Hide stickers
+ Stickers are hidden
+ Stickers are shown
Hide like button
Like button is hidden
Like button is shown