diff --git a/src/main/kotlin/app/revanced/patches/youtube/general/spoofappversion/SpoofAppVersionPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/general/spoofappversion/SpoofAppVersionPatch.kt index 5fcfa9bebd..75d457525d 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/general/spoofappversion/SpoofAppVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/general/spoofappversion/SpoofAppVersionPatch.kt @@ -1,13 +1,9 @@ package app.revanced.patches.youtube.general.spoofappversion import app.revanced.patcher.data.ResourceContext -import app.revanced.patcher.extensions.InstructionExtensions.replaceInstruction import app.revanced.patches.youtube.utils.compatibility.Constants.COMPATIBLE_PACKAGE -import app.revanced.patches.youtube.utils.integrations.Constants.PATCH_STATUS_CLASS_DESCRIPTOR -import app.revanced.patches.youtube.utils.settings.SettingsBytecodePatch import app.revanced.patches.youtube.utils.settings.SettingsPatch import app.revanced.util.appendAppVersion -import app.revanced.util.findMethodOrThrow import app.revanced.util.patch.BaseResourcePatch @Suppress("unused") @@ -17,7 +13,6 @@ object SpoofAppVersionPatch : BaseResourcePatch( "This can be used to restore old UI elements and features.", dependencies = setOf( SettingsPatch::class, - SettingsBytecodePatch::class, SpoofAppVersionBytecodePatch::class ), compatiblePackages = COMPATIBLE_PACKAGE @@ -30,18 +25,6 @@ object SpoofAppVersionPatch : BaseResourcePatch( context.appendAppVersion("18.38.45") if (SettingsPatch.upward1849) { context.appendAppVersion("18.48.39") - if (SettingsPatch.upward1915) { - context.appendAppVersion("19.13.37") - - SettingsBytecodePatch.contexts.findMethodOrThrow( - PATCH_STATUS_CLASS_DESCRIPTOR - ) { - name == "SpoofAppVersionDefaultString" - }.replaceInstruction( - 0, - "const-string v0, \"19.13.37\"" - ) - } } } } diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml index ff312ad31a..a91ad3ed39 100644 --- a/src/main/resources/youtube/settings/host/values/strings.xml +++ b/src/main/resources/youtube/settings/host/values/strings.xml @@ -13,11 +13,6 @@ Do you wish to proceed? Restart to load the layout normally Refresh and restart - "There is a YouTube server-side bug that causes rolling number text such as likes, views, and upload dates to be hidden for some users. - -A temporary workaround for this issue is to spoof the app version to 19.13.37. - -Do you want to spoof the app version before restarting the app?" Normal Video downloader package name @@ -395,7 +390,6 @@ If later turned off, it is recommended to clear the app data to prevent UI bugs. 18.33.40 - Restore old Shorts action bar 18.38.45 - Restore old default video quality behavior 18.48.39 - Disable views and likes from being updated in real time - 19.13.37 - Restore old style Rolling number animations Account menu