diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/annotations/RYDCompatibility.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/annotations/ReturnYouTubeDislikeCompatibility.kt similarity index 82% rename from src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/annotations/RYDCompatibility.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/annotations/ReturnYouTubeDislikeCompatibility.kt index bb048dcaa..f540b1976 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/annotations/RYDCompatibility.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/annotations/ReturnYouTubeDislikeCompatibility.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.returnyoutubedislikes.annotations +package app.revanced.patches.youtube.layout.returnyoutubedislike.annotations import app.revanced.patcher.annotation.Compatibility import app.revanced.patcher.annotation.Package @@ -10,4 +10,4 @@ import app.revanced.patcher.annotation.Package ) @Target(AnnotationTarget.CLASS) @Retention(AnnotationRetention.RUNTIME) -internal annotation class RYDCompatibility \ No newline at end of file +internal annotation class ReturnYouTubeDislikeCompatibility \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/DislikeFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/DislikeFingerprint.kt similarity index 82% rename from src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/DislikeFingerprint.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/DislikeFingerprint.kt index 06b33e4f9..d8faed3b5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/DislikeFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/DislikeFingerprint.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.returnyoutubedislikes.fingerprints +package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Version @@ -6,7 +6,7 @@ import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint -import app.revanced.patches.youtube.layout.returnyoutubedislikes.annotations.RYDCompatibility +import app.revanced.patches.youtube.layout.returnyoutubedislike.annotations.ReturnYouTubeDislikeCompatibility import org.jf.dexlib2.AccessFlags @Name("dislike-fingerprint") @@ -14,7 +14,7 @@ import org.jf.dexlib2.AccessFlags "Luqs;", "" ) @FuzzyPatternScanMethod(2) -@RYDCompatibility +@ReturnYouTubeDislikeCompatibility @Version("0.0.2") object DislikeFingerprint : MethodFingerprint( "V", diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/LikeFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/LikeFingerprint.kt similarity index 81% rename from src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/LikeFingerprint.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/LikeFingerprint.kt index cd086ec29..ec1cebe12 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/LikeFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/LikeFingerprint.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.returnyoutubedislikes.fingerprints +package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Version @@ -6,7 +6,7 @@ import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint -import app.revanced.patches.youtube.layout.returnyoutubedislikes.annotations.RYDCompatibility +import app.revanced.patches.youtube.layout.returnyoutubedislike.annotations.ReturnYouTubeDislikeCompatibility import org.jf.dexlib2.AccessFlags @Name("like-fingerprint") @@ -14,7 +14,7 @@ import org.jf.dexlib2.AccessFlags "Luqt;", "" ) @FuzzyPatternScanMethod(2) -@RYDCompatibility +@ReturnYouTubeDislikeCompatibility @Version("0.0.2") object LikeFingerprint : MethodFingerprint( "V", diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/RemoveLikeFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/RemoveLikeFingerprint.kt similarity index 82% rename from src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/RemoveLikeFingerprint.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/RemoveLikeFingerprint.kt index 797605f4d..4561de2b0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/RemoveLikeFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/RemoveLikeFingerprint.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.returnyoutubedislikes.fingerprints +package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Version @@ -6,7 +6,7 @@ import app.revanced.patcher.extensions.or import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint -import app.revanced.patches.youtube.layout.returnyoutubedislikes.annotations.RYDCompatibility +import app.revanced.patches.youtube.layout.returnyoutubedislike.annotations.ReturnYouTubeDislikeCompatibility import org.jf.dexlib2.AccessFlags @Name("remove-like-fingerprint") @@ -14,7 +14,7 @@ import org.jf.dexlib2.AccessFlags "Luqw;", "" ) @FuzzyPatternScanMethod(2) -@RYDCompatibility +@ReturnYouTubeDislikeCompatibility @Version("0.0.2") object RemoveLikeFingerprint : MethodFingerprint( "V", diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/TextComponentSpecParentFingerprint.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/TextComponentSpecParentFingerprint.kt similarity index 80% rename from src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/TextComponentSpecParentFingerprint.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/TextComponentSpecParentFingerprint.kt index 16843aa83..fdc689ba0 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/fingerprints/TextComponentSpecParentFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/TextComponentSpecParentFingerprint.kt @@ -1,18 +1,18 @@ -package app.revanced.patches.youtube.layout.returnyoutubedislikes.fingerprints +package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints import app.revanced.patcher.annotation.Name import app.revanced.patcher.annotation.Version import app.revanced.patcher.fingerprint.method.annotation.DirectPatternScanMethod import app.revanced.patcher.fingerprint.method.annotation.MatchingMethod import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint -import app.revanced.patches.youtube.layout.returnyoutubedislikes.annotations.RYDCompatibility +import app.revanced.patches.youtube.layout.returnyoutubedislike.annotations.ReturnYouTubeDislikeCompatibility @Name("text-component-spec-parent-fingerprint") @MatchingMethod( "Lnvy;", "e" ) @DirectPatternScanMethod -@RYDCompatibility +@ReturnYouTubeDislikeCompatibility @Version("0.0.1") object TextComponentSpecParentFingerprint : MethodFingerprint( null, diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/patch/RYDPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/patch/ReturnYouTubeDislikePatch.kt similarity index 80% rename from src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/patch/RYDPatch.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/patch/ReturnYouTubeDislikePatch.kt index 7ceaaf2b8..4bc7730f9 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislikes/patch/RYDPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/returnyoutubedislike/patch/ReturnYouTubeDislikePatch.kt @@ -1,4 +1,4 @@ -package app.revanced.patches.youtube.layout.returnyoutubedislikes.patch +package app.revanced.patches.youtube.layout.returnyoutubedislike.patch import app.revanced.patcher.annotation.Description import app.revanced.patcher.annotation.Name @@ -11,21 +11,21 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.Dependencies import app.revanced.patcher.patch.annotations.Patch import app.revanced.patcher.patch.impl.BytecodePatch -import app.revanced.patches.youtube.layout.returnyoutubedislikes.annotations.RYDCompatibility -import app.revanced.patches.youtube.layout.returnyoutubedislikes.fingerprints.TextComponentSpecParentFingerprint -import app.revanced.patches.youtube.layout.returnyoutubedislikes.fingerprints.DislikeFingerprint -import app.revanced.patches.youtube.layout.returnyoutubedislikes.fingerprints.LikeFingerprint -import app.revanced.patches.youtube.layout.returnyoutubedislikes.fingerprints.RemoveLikeFingerprint +import app.revanced.patches.youtube.layout.returnyoutubedislike.annotations.ReturnYouTubeDislikeCompatibility +import app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints.TextComponentSpecParentFingerprint +import app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints.DislikeFingerprint +import app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints.LikeFingerprint +import app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints.RemoveLikeFingerprint import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch import app.revanced.patches.youtube.misc.videoid.patch.VideoIdPatch @Patch -@Dependencies(dependencies = [IntegrationsPatch::class, VideoIdPatch::class]) -@Name("return-youtube-dislikes") +@Dependencies([IntegrationsPatch::class, VideoIdPatch::class]) +@Name("return-youtube-dislike") @Description("Shows the dislike count of videos.") -@RYDCompatibility +@ReturnYouTubeDislikeCompatibility @Version("0.0.1") -class RYDPatch : BytecodePatch( +class ReturnYouTubeDislikePatch : BytecodePatch( listOf( TextComponentSpecParentFingerprint, LikeFingerprint, DislikeFingerprint, RemoveLikeFingerprint )