mirror of
https://github.com/ReVanced/revanced-patches.git
synced 2026-01-24 11:11:03 +00:00
Compare commits
4 Commits
v5.47.0-de
...
v5.47.0-de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1a9537f01 | ||
|
|
1f4f252c81 | ||
|
|
2b560f5fe9 | ||
|
|
f8bd1239cc |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
|||||||
|
# [5.47.0-dev.18](https://github.com/ReVanced/revanced-patches/compare/v5.47.0-dev.17...v5.47.0-dev.18) (2025-12-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* **Disney+ - SkipAds:** Add other package names the patch is compatible with ([#6372](https://github.com/ReVanced/revanced-patches/issues/6372)) ([1f4f252](https://github.com/ReVanced/revanced-patches/commit/1f4f252c81e9a89267f6e37548e66027b1bc1a1a))
|
||||||
|
|
||||||
|
# [5.47.0-dev.17](https://github.com/ReVanced/revanced-patches/compare/v5.47.0-dev.16...v5.47.0-dev.17) (2025-12-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* **Reddit - Hide ads:** Update patch for new versions of Reddit ([#6342](https://github.com/ReVanced/revanced-patches/issues/6342)) ([f8bd123](https://github.com/ReVanced/revanced-patches/commit/f8bd1239cc0f0bd1c2dca39f846951bf512891e3))
|
||||||
|
|
||||||
# [5.47.0-dev.16](https://github.com/ReVanced/revanced-patches/compare/v5.47.0-dev.15...v5.47.0-dev.16) (2025-12-15)
|
# [5.47.0-dev.16](https://github.com/ReVanced/revanced-patches/compare/v5.47.0-dev.15...v5.47.0-dev.16) (2025-12-15)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ org.gradle.jvmargs = -Xms512M -Xmx2048M
|
|||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
android.useAndroidX = true
|
android.useAndroidX = true
|
||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 5.47.0-dev.16
|
version = 5.47.0-dev.18
|
||||||
|
|||||||
@@ -8,7 +8,11 @@ val skipAdsPatch = bytecodePatch(
|
|||||||
name = "Skip ads",
|
name = "Skip ads",
|
||||||
description = "Automatically skips ads.",
|
description = "Automatically skips ads.",
|
||||||
) {
|
) {
|
||||||
compatibleWith("com.disney.disneyplus")
|
compatibleWith(
|
||||||
|
"com.disney.disneyplus",
|
||||||
|
"in.startv.hotstar",
|
||||||
|
"in.startv.hotstaronly",
|
||||||
|
)
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
arrayOf(insertionGetPointsFingerprint, insertionGetRangesFingerprint).forEach {
|
arrayOf(insertionGetPointsFingerprint, insertionGetRangesFingerprint).forEach {
|
||||||
|
|||||||
@@ -3,12 +3,8 @@ package app.revanced.patches.reddit.ad.comments
|
|||||||
import app.revanced.patcher.fingerprint
|
import app.revanced.patcher.fingerprint
|
||||||
|
|
||||||
internal val hideCommentAdsFingerprint = fingerprint {
|
internal val hideCommentAdsFingerprint = fingerprint {
|
||||||
strings(
|
custom { method, classDef ->
|
||||||
"link",
|
method.name == "invokeSuspend" &&
|
||||||
// CommentPageRepository is not returning a link object
|
classDef.contains("LoadAdsCombinedCall")
|
||||||
"is not returning a link object"
|
|
||||||
)
|
|
||||||
custom { _, classDef ->
|
|
||||||
classDef.sourceFile == "PostDetailPresenter.kt"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package app.revanced.patches.reddit.ad.comments
|
package app.revanced.patches.reddit.ad.comments
|
||||||
|
|
||||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
import app.revanced.patcher.extensions.InstructionExtensions.replaceInstructions
|
||||||
import app.revanced.patcher.patch.bytecodePatch
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
|
|
||||||
val hideCommentAdsPatch = bytecodePatch(
|
val hideCommentAdsPatch = bytecodePatch(
|
||||||
@@ -8,13 +8,6 @@ val hideCommentAdsPatch = bytecodePatch(
|
|||||||
) {
|
) {
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
hideCommentAdsFingerprint.method.addInstructions(
|
hideCommentAdsFingerprint.method.replaceInstructions(0, "return-object p1")
|
||||||
0,
|
|
||||||
"""
|
|
||||||
new-instance v0, Ljava/lang/Object;
|
|
||||||
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
||||||
return-object v0
|
|
||||||
""",
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,5 @@ internal val adPostFingerprint = fingerprint {
|
|||||||
|
|
||||||
internal val newAdPostFingerprint = fingerprint {
|
internal val newAdPostFingerprint = fingerprint {
|
||||||
opcodes(Opcode.INVOKE_VIRTUAL)
|
opcodes(Opcode.INVOKE_VIRTUAL)
|
||||||
strings("chain", "feedElement")
|
strings("feedElement", "com.reddit.cookie")
|
||||||
custom { _, classDef -> classDef.sourceFile == "AdElementConverter.kt" }
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ package app.revanced.patches.reddit.ad.general
|
|||||||
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
|
||||||
import app.revanced.patcher.extensions.InstructionExtensions.removeInstruction
|
import app.revanced.patcher.extensions.InstructionExtensions.removeInstruction
|
||||||
import app.revanced.patcher.patch.bytecodePatch
|
import app.revanced.patcher.patch.bytecodePatch
|
||||||
import app.revanced.patches.reddit.ad.banner.hideBannerPatch
|
|
||||||
import app.revanced.patches.reddit.ad.comments.hideCommentAdsPatch
|
import app.revanced.patches.reddit.ad.comments.hideCommentAdsPatch
|
||||||
import app.revanced.patches.reddit.misc.extension.sharedExtensionPatch
|
import app.revanced.patches.reddit.misc.extension.sharedExtensionPatch
|
||||||
import com.android.tools.smali.dexlib2.Opcode
|
import com.android.tools.smali.dexlib2.Opcode
|
||||||
@@ -16,14 +15,9 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
|
|||||||
val hideAdsPatch = bytecodePatch(
|
val hideAdsPatch = bytecodePatch(
|
||||||
name = "Hide ads",
|
name = "Hide ads",
|
||||||
) {
|
) {
|
||||||
dependsOn(hideBannerPatch, hideCommentAdsPatch, sharedExtensionPatch)
|
dependsOn(hideCommentAdsPatch, sharedExtensionPatch)
|
||||||
|
|
||||||
// Note that for now, this patch and anything using it will only work on
|
compatibleWith("com.reddit.frontpage")
|
||||||
// Reddit 2024.17.0 or older. Newer versions will crash during patching.
|
|
||||||
// See https://github.com/ReVanced/revanced-patches/issues/3099
|
|
||||||
// and https://github.com/iBotPeaches/Apktool/issues/3534.
|
|
||||||
// This constraint is necessary due to dependency on hideBannerPatch.
|
|
||||||
compatibleWith("com.reddit.frontpage"("2024.17.0"))
|
|
||||||
|
|
||||||
execute {
|
execute {
|
||||||
// region Filter promoted ads (does not work in popular or latest feed)
|
// region Filter promoted ads (does not work in popular or latest feed)
|
||||||
|
|||||||
Reference in New Issue
Block a user