generated from ReVanced/revanced-patches-template
-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(youtube): support version
18.08.37
- Loading branch information
Showing
39 changed files
with
361 additions
and
283 deletions.
There are no files selected for viewing
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
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
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
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
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
3 changes: 0 additions & 3 deletions
3
...p/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/DislikeFingerprint.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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.AccessFlags | ||
|
||
object DislikeFingerprint : MethodFingerprint( | ||
"V", | ||
AccessFlags.PROTECTED or AccessFlags.CONSTRUCTOR, | ||
strings = listOf("like/dislike") | ||
) |
3 changes: 0 additions & 3 deletions
3
.../app/revanced/patches/youtube/layout/returnyoutubedislike/fingerprints/LikeFingerprint.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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.annotation.FuzzyPatternScanMethod | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.AccessFlags | ||
|
||
|
||
@FuzzyPatternScanMethod(2) | ||
object LikeFingerprint : MethodFingerprint( | ||
"V", | ||
AccessFlags.PROTECTED or AccessFlags.CONSTRUCTOR, | ||
strings = listOf("like/like") | ||
) |
3 changes: 0 additions & 3 deletions
3
...evanced/patches/youtube/layout/returnyoutubedislike/fingerprints/RemoveLikeFingerprint.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 |
---|---|---|
@@ -1,11 +1,8 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.AccessFlags | ||
|
||
object RemoveLikeFingerprint : MethodFingerprint( | ||
"V", | ||
AccessFlags.PROTECTED or AccessFlags.CONSTRUCTOR, | ||
strings = listOf("like/removelike") | ||
) |
11 changes: 11 additions & 0 deletions
11
...s/youtube/layout/returnyoutubedislike/fingerprints/TextComponentConstructorFingerprint.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,11 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.AccessFlags | ||
|
||
object TextComponentConstructorFingerprint : MethodFingerprint( | ||
access = AccessFlags.CONSTRUCTOR or AccessFlags.PRIVATE, | ||
strings = listOf("TextComponent") | ||
) |
8 changes: 0 additions & 8 deletions
8
...nced/patches/youtube/layout/returnyoutubedislike/fingerprints/TextComponentFingerprint.kt
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
...es/youtube/layout/returnyoutubedislike/fingerprints/TextComponentSpecParentFingerprint.kt
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
...nced/patches/youtube/layout/returnyoutubedislike/fingerprints/TextReferenceFingerprint.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,14 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
|
||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.Opcode | ||
|
||
object TextReferenceFingerprint : MethodFingerprint( | ||
opcodes = listOf( | ||
Opcode.INVOKE_STATIC_RANGE, | ||
Opcode.MOVE_RESULT_OBJECT, | ||
Opcode.INVOKE_DIRECT, | ||
Opcode.INVOKE_VIRTUAL | ||
) | ||
) |
11 changes: 11 additions & 0 deletions
11
...patches/youtube/layout/returnyoutubedislike/fingerprints/TextReferenceParamFingerprint.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,11 @@ | ||
package app.revanced.patches.youtube.layout.returnyoutubedislike.fingerprints | ||
|
||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.Opcode | ||
|
||
object TextReferenceParamFingerprint : MethodFingerprint( | ||
opcodes = listOf( | ||
Opcode.MOVE_OBJECT, | ||
Opcode.MOVE_OBJECT_FROM16 // the first occurrence of this instruction uses the register for the text 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
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
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
13 changes: 13 additions & 0 deletions
13
...tches/youtube/layout/tabletminiplayer/fingerprints/MiniPlayerOverrideParentFingerprint.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,13 @@ | ||
package app.revanced.patches.youtube.layout.tabletminiplayer.fingerprints | ||
|
||
import app.revanced.patcher.extensions.or | ||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint | ||
import org.jf.dexlib2.AccessFlags | ||
|
||
|
||
object MiniPlayerOverrideParentFingerprint : MethodFingerprint( | ||
returnType = "L", | ||
access = AccessFlags.PUBLIC or AccessFlags.STATIC, | ||
parameters = listOf("L"), | ||
strings = listOf("VIDEO_QUALITIES_QUICK_MENU_BOTTOM_SHEET_FRAGMENT") | ||
) |
Oops, something went wrong.