generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: disable sponsorblock on shorts (#439)
- Loading branch information
OxrxL
committed
Sep 21, 2022
1 parent
69c9b58
commit 72bb3d9
Showing
2 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
...s/youtube/layout/sponsorblock/bytecode/fingerprints/ShortsPlayerConstructorFingerprint.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package app.revanced.patches.youtube.layout.sponsorblock.bytecode.fingerprints | ||
|
||
import app.revanced.patcher.annotation.Name | ||
import app.revanced.patcher.annotation.Version | ||
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.sponsorblock.annotations.SponsorBlockCompatibility | ||
import org.jf.dexlib2.AccessFlags | ||
import org.jf.dexlib2.Opcode | ||
|
||
@Name("shorts-player-constructor-fingerprint") | ||
@MatchingMethod("Lhgp;", "<init>") | ||
@FuzzyPatternScanMethod(3) | ||
@SponsorBlockCompatibility | ||
@Version("0.0.1") | ||
object ShortsPlayerConstructorFingerprint : MethodFingerprint( | ||
"V", AccessFlags.PUBLIC or AccessFlags.CONSTRUCTOR, | ||
opcodes = listOf( | ||
Opcode.MOVE_OBJECT_FROM16, | ||
Opcode.MOVE_OBJECT_FROM16, | ||
Opcode.MOVE_OBJECT_FROM16, | ||
Opcode.INVOKE_DIRECT_RANGE, | ||
Opcode.NEW_INSTANCE, | ||
Opcode.INVOKE_DIRECT, | ||
Opcode.IPUT_OBJECT, | ||
Opcode.NEW_INSTANCE, | ||
Opcode.INVOKE_DIRECT, | ||
Opcode.IPUT_OBJECT, | ||
Opcode.NEW_INSTANCE, | ||
Opcode.INVOKE_DIRECT, | ||
Opcode.IPUT_OBJECT, | ||
Opcode.NEW_INSTANCE, | ||
Opcode.INVOKE_DIRECT, | ||
Opcode.IPUT_OBJECT | ||
) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters