diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt
index 285409e81e..e65eced6ce 100644
--- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt
+++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/shorts/HideShortsComponentsPatch.kt
@@ -14,6 +14,8 @@ import app.revanced.patches.shared.misc.mapping.ResourceMappingPatch
import app.revanced.patches.youtube.layout.hide.shorts.fingerprints.*
import app.revanced.patches.youtube.misc.integrations.IntegrationsPatch
import app.revanced.patches.youtube.misc.litho.filter.LithoFilterPatch
+import app.revanced.patches.youtube.misc.navigation.NavigationBarHookPatch
+import app.revanced.patches.youtube.misc.playertype.PlayerTypeHookPatch
import com.android.tools.smali.dexlib2.iface.instruction.FiveRegisterInstruction
import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
@@ -25,7 +27,9 @@ import com.android.tools.smali.dexlib2.iface.instruction.TwoRegisterInstruction
IntegrationsPatch::class,
LithoFilterPatch::class,
HideShortsComponentsResourcePatch::class,
- ResourceMappingPatch::class
+ ResourceMappingPatch::class,
+ NavigationBarHookPatch::class,
+ PlayerTypeHookPatch::class
],
compatiblePackages = [
CompatiblePackage(
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 bda146846c..8593cd056f 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
@@ -17,22 +17,32 @@ object HideShortsComponentsResourcePatch : ResourcePatch() {
AddResourcesPatch(this::class)
SettingsPatch.PreferenceScreen.SHORTS.addPreferences(
- SwitchPreference("revanced_hide_shorts"),
- SwitchPreference("revanced_hide_shorts_join_button"),
- SwitchPreference("revanced_hide_shorts_subscribe_button"),
- SwitchPreference("revanced_hide_shorts_subscribe_button_paused"),
- SwitchPreference("revanced_hide_shorts_thanks_button"),
+ SwitchPreference("revanced_hide_shorts_home"),
+ SwitchPreference("revanced_hide_shorts_subscriptions"),
+ SwitchPreference("revanced_hide_shorts_search"),
+
+ // Shorts player components.
+ // Ideally each group should be ordered similar to how they appear in the UI
+ // since this Setting menu currently uses the ordering used here.
+
+ // Vertical row of buttons on right side of the screen.
SwitchPreference("revanced_hide_shorts_like_button"),
SwitchPreference("revanced_hide_shorts_dislike_button"),
SwitchPreference("revanced_hide_shorts_comments_button"),
- SwitchPreference("revanced_hide_shorts_remix_button"),
SwitchPreference("revanced_hide_shorts_share_button"),
- SwitchPreference("revanced_hide_shorts_info_panel"),
+ SwitchPreference("revanced_hide_shorts_remix_button"),
+ SwitchPreference("revanced_hide_shorts_sound_button"),
+
+ // Everything else.
+ SwitchPreference("revanced_hide_shorts_thanks_button"),
+ SwitchPreference("revanced_hide_shorts_join_button"),
+ SwitchPreference("revanced_hide_shorts_subscribe_button"),
+ SwitchPreference("revanced_hide_shorts_subscribe_button_paused"),
SwitchPreference("revanced_hide_shorts_channel_bar"),
+ SwitchPreference("revanced_hide_shorts_info_panel"),
+ SwitchPreference("revanced_hide_shorts_full_video_link_label"),
SwitchPreference("revanced_hide_shorts_video_title"),
SwitchPreference("revanced_hide_shorts_sound_metadata_label"),
- SwitchPreference("revanced_hide_shorts_full_video_link_label"),
- SwitchPreference("revanced_hide_shorts_sound_button"),
SwitchPreference("revanced_hide_shorts_navigation_bar"),
)
diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml
index b65b75d7ed..b799eef24b 100644
--- a/src/main/resources/addresources/values/strings.xml
+++ b/src/main/resources/addresources/values/strings.xml
@@ -479,9 +479,15 @@
Thumbnail seekbar is shown
- Hide Shorts in feed
- Shorts are hidden
- Shorts are shown
+ Hide Shorts in home feed
+ Shorts in home feed are hidden
+ Shorts in home feed are shown
+ Hide Shorts in subscription feed
+ Shorts in subscription feed are hidden
+ Shorts in subscription feed are shown
+ Hide Shorts in search results
+ Shorts in search results are hidden
+ Shorts in search results are shown
Hide join button
Join button is hidden
Join button is shown