diff --git a/patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt b/patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt index ed4b0ead2..27c981256 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/ad/video/HideVideoAds.kt @@ -8,12 +8,7 @@ val hideVideoAdsPatch = bytecodePatch( name = "Hide music video ads", description = "Hides ads that appear while listening to or streaming music videos, podcasts, or songs.", ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") execute { navigate(showVideoAdsParentFingerprint.originalMethod) diff --git a/patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt b/patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt index 765bee867..6ae5217f4 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/audio/exclusiveaudio/EnableExclusiveAudioPlayback.kt @@ -8,12 +8,7 @@ val enableExclusiveAudioPlaybackPatch = bytecodePatch( name = "Enable exclusive audio playback", description = "Enables the option to play audio without video.", ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") execute { allowExclusiveAudioPlaybackFingerprint.method.returnEarly(true) diff --git a/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt index 89178d6ae..cbcf83c5d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentrepeat/PermanentRepeatPatch.kt @@ -11,12 +11,7 @@ val permanentRepeatPatch = bytecodePatch( description = "Permanently remember your repeating preference even if the playlist ends or another track is played.", use = false, ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") execute { val startIndex = repeatTrackFingerprint.patternMatch!!.endIndex diff --git a/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentshuffle/PermanentShufflePatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentshuffle/PermanentShufflePatch.kt index e27749495..1e4d81d3d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentshuffle/PermanentShufflePatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/interaction/permanentshuffle/PermanentShufflePatch.kt @@ -7,18 +7,9 @@ import app.revanced.patcher.patch.bytecodePatch @Suppress("unused") val permanentShufflePatch = bytecodePatch( description = "Permanently remember your shuffle preference " + - "even if the playlist ends or another track is played.", - use = false, + "even if the playlist ends or another track is played." ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "6.45.54", - "6.51.53", - "7.01.53", - "7.02.52", - "7.03.52", - ), - ) + compatibleWith("com.google.android.apps.youtube.music") execute { disableShuffleFingerprint.method.addInstruction(0, "return-void") diff --git a/patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt b/patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt index 8c5ed8139..b0021b966 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/layout/compactheader/HideCategoryBar.kt @@ -11,12 +11,7 @@ val hideCategoryBar = bytecodePatch( description = "Hides the category bar at the top of the homepage.", use = false, ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") execute { constructCategoryBarFingerprint.method.apply { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt index e45a90426..23965cea4 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/layout/premium/HideGetPremiumPatch.kt @@ -11,12 +11,7 @@ val hideGetPremiumPatch = bytecodePatch( name = "Hide 'Get Music Premium' label", description = "Hides the \"Get Music Premium\" label from the account menu and settings.", ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") execute { hideGetPremiumFingerprint.method.apply { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/RemoveUpgradeButtonPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/RemoveUpgradeButtonPatch.kt index 12b81b9a0..22878b05f 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/RemoveUpgradeButtonPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/layout/upgradebutton/RemoveUpgradeButtonPatch.kt @@ -18,12 +18,7 @@ val removeUpgradeButtonPatch = bytecodePatch( name = "Remove upgrade button", description = "Removes the upgrade tab from the pivot bar.", ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") execute { pivotBarConstructorFingerprint.method.apply { diff --git a/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt index f4587acc7..32ee6894d 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/misc/androidauto/BypassCertificateChecksPatch.kt @@ -8,12 +8,7 @@ val bypassCertificateChecksPatch = bytecodePatch( name = "Bypass certificate checks", description = "Bypasses certificate checks which prevent YouTube Music from working on Android Auto.", ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") execute { checkCertificateFingerprint.method.returnEarly(true) diff --git a/patches/src/main/kotlin/app/revanced/patches/music/misc/backgroundplayback/BackgroundPlaybackPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/misc/backgroundplayback/BackgroundPlaybackPatch.kt index b2b0674d5..90ddf6644 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/misc/backgroundplayback/BackgroundPlaybackPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/misc/backgroundplayback/BackgroundPlaybackPatch.kt @@ -8,12 +8,7 @@ val backgroundPlaybackPatch = bytecodePatch( name = "Remove background playback restrictions", description = "Removes restrictions on background playback, including playing kids videos in the background.", ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") execute { kidsBackgroundPlaybackPolicyControllerFingerprint.method.addInstruction( diff --git a/patches/src/main/kotlin/app/revanced/patches/music/misc/spoof/SpoofClientPatch.kt b/patches/src/main/kotlin/app/revanced/patches/music/misc/spoof/SpoofClientPatch.kt index e6fb8e3fe..f34797f03 100644 --- a/patches/src/main/kotlin/app/revanced/patches/music/misc/spoof/SpoofClientPatch.kt +++ b/patches/src/main/kotlin/app/revanced/patches/music/misc/spoof/SpoofClientPatch.kt @@ -25,12 +25,7 @@ val spoofClientPatch = bytecodePatch( name = "Spoof client", description = "Spoofs the client to fix playback.", ) { - compatibleWith( - "com.google.android.apps.youtube.music"( - "7.16.53", - "8.05.51" - ) - ) + compatibleWith("com.google.android.apps.youtube.music") dependsOn( sharedExtensionPatch,