diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/ReturnYouTubeDislikePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/ReturnYouTubeDislikePatch.kt index b63fc5a49..7ded8bf17 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/ReturnYouTubeDislikePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/ReturnYouTubeDislikePatch.kt @@ -184,6 +184,9 @@ object ReturnYouTubeDislikePatch : BytecodePatch( // Filter that parses the video id from the UI LithoFilterPatch.addFilter(FILTER_CLASS_DESCRIPTOR) + // Player response video id is needed to search for the video ids in Shorts litho components. + VideoIdPatch.hookPlayerResponseVideoId("$FILTER_CLASS_DESCRIPTOR->newPlayerResponseVideoId(Ljava/lang/String;)V") + // endregion // region Hook old UI layout dislikes, for the older app spoofs used with spoof-app-version. diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/SpoofAppVersionPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/SpoofAppVersionPatch.kt index 4518f882b..fcbdef357 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/SpoofAppVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/spoofappversion/SpoofAppVersionPatch.kt @@ -62,19 +62,21 @@ object SpoofAppVersionPatch : BytecodePatch( ArrayResource( "revanced_spoof_app_version_target_entries", listOf( - StringResource("revanced_spoof_app_version_target_entry_1", "18.20.39 - Restore wide video speed & quality menu"), - StringResource("revanced_spoof_app_version_target_entry_2", "17.08.35 - Restore old UI layout"), - StringResource("revanced_spoof_app_version_target_entry_3", "16.08.35 - Restore explore tab"), - StringResource("revanced_spoof_app_version_target_entry_4", "16.01.35 - Restore old Shorts player"), + StringResource("revanced_spoof_app_version_target_entry_1", "18.33.40 - Restore RYD Shorts incognito mode"), + StringResource("revanced_spoof_app_version_target_entry_2", "18.20.39 - Restore wide video speed & quality menu"), + StringResource("revanced_spoof_app_version_target_entry_3", "17.08.35 - Restore old UI layout"), + StringResource("revanced_spoof_app_version_target_entry_4", "16.08.35 - Restore explore tab"), + StringResource("revanced_spoof_app_version_target_entry_5", "16.01.35 - Restore old Shorts player"), ) ), ArrayResource( "revanced_spoof_app_version_target_entry_values", listOf( - StringResource("revanced_spoof_app_version_target_entry_value_1", "18.20.39"), - StringResource("revanced_spoof_app_version_target_entry_value_2", "17.08.35"), - StringResource("revanced_spoof_app_version_target_entry_value_3", "16.08.35"), - StringResource("revanced_spoof_app_version_target_entry_value_4", "16.01.35"), + StringResource("revanced_spoof_app_version_target_entry_value_1", "18.33.40"), + StringResource("revanced_spoof_app_version_target_entry_value_2", "18.20.39"), + StringResource("revanced_spoof_app_version_target_entry_value_3", "17.08.35"), + StringResource("revanced_spoof_app_version_target_entry_value_4", "16.08.35"), + StringResource("revanced_spoof_app_version_target_entry_value_5", "16.01.35"), ) ) ) diff --git a/src/main/resources/returnyoutubedislike/host/values/strings.xml b/src/main/resources/returnyoutubedislike/host/values/strings.xml index e887fe5ce..51e1657e9 100644 --- a/src/main/resources/returnyoutubedislike/host/values/strings.xml +++ b/src/main/resources/returnyoutubedislike/host/values/strings.xml @@ -14,8 +14,9 @@ Dislikes are not shown Show dislikes on Shorts - Dislikes shown on Shorts + Dislikes shown on Shorts %s Dislikes hidden on Shorts + Limitation: Dislikes will not be shown while in incognito mode Dislikes as percentage Dislikes shown as percentage