Skip to content

Commit

Permalink
refactor(twitter): Add credits
Browse files Browse the repository at this point in the history
  • Loading branch information
crimera committed Feb 8, 2024
1 parent d41d1ad commit a200a08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import com.android.tools.smali.dexlib2.Opcode
import crimera.patches.twitter.download.fingerprints.DownloadPatchFingerprint
import crimera.patches.twitter.download.fingerprints.FIleDownloaderFingerprint

// Credits to @iKirby
@Patch(
name = "Download patch",
description = "Unlocks the ability to download videos from Twitter",
Expand All @@ -29,9 +30,6 @@ object DownloadPatch : BytecodePatch(

val method = result.mutableMethod
val instructions = method.getInstructions()
// instructions.forEach {
// println(it.opcode)
// }

val index = instructions.filter { it.opcode == Opcode.IF_EQ }[1].location.index

Expand All @@ -53,8 +51,6 @@ object DownloadPatch : BytecodePatch(
val f2Result = FIleDownloaderFingerprint.result
?: throw PatchException("FIleDownloaderFingerprint not found")

// print(f2Result.classDef.superclass)

f2Result.mutableClass.methods.forEach {
if (it.name == "a") {
// get first if
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package crimera.patches.twitter.view

import app.revanced.patcher.data.BytecodeContext
import app.revanced.patcher.data.ResourceContext
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
import app.revanced.patcher.extensions.InstructionExtensions.getInstructions
import app.revanced.patcher.extensions.InstructionExtensions.removeInstructions
import app.revanced.patcher.patch.BytecodePatch
import app.revanced.patcher.patch.PatchException
import app.revanced.patcher.patch.ResourcePatch
import app.revanced.patcher.patch.annotation.CompatiblePackage
import app.revanced.patcher.patch.annotation.Patch
import crimera.patches.twitter.view.fingerprints.RemoveViewCountPatchFingerprint

// Credits to @iKirby
@Patch(
name = "Remove view count",
description = "Removes the view count from the bottom of tweets",
Expand Down

0 comments on commit a200a08

Please sign in to comment.