diff --git a/src/main/kotlin/app/revanced/patches/shared/patch/options/PatchOptions.kt b/src/main/kotlin/app/revanced/patches/shared/patch/options/PatchOptions.kt index 1a89dcb26..57bd827a8 100644 --- a/src/main/kotlin/app/revanced/patches/shared/patch/options/PatchOptions.kt +++ b/src/main/kotlin/app/revanced/patches/shared/patch/options/PatchOptions.kt @@ -83,17 +83,5 @@ class PatchOptions : ResourcePatch { description = "The background color of the dark theme. Can be a hex color or a resource reference." ) ) - - /** - * Client Spoofing Version - */ - internal var clientSpoofVersion: String? by option( - PatchOption.StringOption( - key = "clientSpoofVersion", - default = "17.28.35", - title = "Old YouTube version to override", - description = "Type the client version to spoof when Old Layout is enabled" - ) - ) } } diff --git a/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/patch/SpoofAppVersionPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/patch/SpoofAppVersionPatch.kt index a6ea732b1..621640ae3 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/patch/SpoofAppVersionPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/misc/spoofappversion/patch/SpoofAppVersionPatch.kt @@ -31,6 +31,11 @@ class SpoofAppVersionPatch : ResourcePatch { GeneralVersionSpoofPatch.injectSpoof("$MISC_PATH/VersionOverridePatch;->getVersionOverride(Ljava/lang/String;)Ljava/lang/String;") + /** + * Copy arrays + */ + context.copyXmlNode("youtube/spoofappversion/host", "values/arrays.xml", "resources") + /** * Add settings */ diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml index ec6b6d8cb..117706c60 100644 --- a/src/main/resources/youtube/settings/host/values/strings.xml +++ b/src/main/resources/youtube/settings/host/values/strings.xml @@ -86,6 +86,11 @@ This will change the appearance of the app, but unknown side effects may occur If later turned off, the old UI may remain until clear the app data" Spoof app version + 17.41.37 - Playlists shelf in library tab follows old layout + 17.30.34 - Restore old UI layout + 17.06.35 - Enable sorting videos by oldest + 16.08.35 - Restore explore tab + Spoof app version target New style quality settings are shown Old style quality settings are shown Enable old style quality layout diff --git a/src/main/resources/youtube/settings/xml/revanced_prefs.xml b/src/main/resources/youtube/settings/xml/revanced_prefs.xml index 461600a83..98e22b129 100644 --- a/src/main/resources/youtube/settings/xml/revanced_prefs.xml +++ b/src/main/resources/youtube/settings/xml/revanced_prefs.xml @@ -430,7 +430,8 @@ + + SETTINGS: SPOOF_APP_VERSION -->