mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-07 01:51:27 +01:00
Removing dev code that snuck in
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package app.revanced.patches.youtube.video.information
|
||||
|
||||
import app.revanced.patcher.InstructionFilter
|
||||
import app.revanced.patcher.InstructionLocation
|
||||
import app.revanced.patcher.InstructionLocation.MatchAfterWithin
|
||||
import app.revanced.patcher.fieldAccess
|
||||
import app.revanced.patcher.fingerprint
|
||||
@@ -12,10 +10,7 @@ import app.revanced.patches.youtube.shared.videoQualityChangedFingerprint
|
||||
import app.revanced.util.getReference
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
import com.android.tools.smali.dexlib2.iface.Method
|
||||
import com.android.tools.smali.dexlib2.iface.instruction.Instruction
|
||||
import com.android.tools.smali.dexlib2.iface.reference.FieldReference
|
||||
import com.android.tools.smali.dexlib2.iface.reference.StringReference
|
||||
|
||||
internal val createVideoPlayerSeekbarFingerprint = fingerprint {
|
||||
returns("V")
|
||||
@@ -54,21 +49,6 @@ internal val playerInitFingerprint = fingerprint {
|
||||
internal val seekFingerprint = fingerprint {
|
||||
instructions(
|
||||
string("Attempting to seek during an ad"),
|
||||
object : InstructionFilter {
|
||||
override fun matches(
|
||||
enclosingMethod: Method,
|
||||
instruction: Instruction
|
||||
): Boolean {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
|
||||
override val location: InstructionLocation = InstructionLocation.MatchFirst()
|
||||
},
|
||||
|
||||
// Custom inline filter. Uses default match anywhere after the previous filter.
|
||||
{ _, instruction ->
|
||||
instruction.getReference<StringReference>()?.string?.let { it.length > 10 } ?: false
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user