mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-12-09 10:53:55 +01:00
feat(ProtonVPN): Add Remove delay patch (#6326)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
@@ -621,6 +621,10 @@ public final class app/revanced/patches/protonmail/signature/RemoveSentFromSigna
|
||||
public static final fun getRemoveSentFromSignaturePatch ()Lapp/revanced/patcher/patch/ResourcePatch;
|
||||
}
|
||||
|
||||
public final class app/revanced/patches/protonvpn/delay/RemoveDelayPatchKt {
|
||||
public static final fun getRemoveDelayPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||
}
|
||||
|
||||
public final class app/revanced/patches/rar/misc/annoyances/purchasereminder/HidePurchaseReminderPatchKt {
|
||||
public static final fun getHidePurchaseReminderPatch ()Lapp/revanced/patcher/patch/BytecodePatch;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package app.revanced.patches.protonvpn.delay
|
||||
|
||||
import app.revanced.patcher.fingerprint
|
||||
|
||||
|
||||
internal val longDelayFingerprint = fingerprint {
|
||||
custom { method, _ ->
|
||||
method.name == "getChangeServerLongDelayInSeconds"
|
||||
}
|
||||
}
|
||||
|
||||
internal val shortDelayFingerprint = fingerprint {
|
||||
custom { method, _ ->
|
||||
method.name == "getChangeServerShortDelayInSeconds"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package app.revanced.patches.protonvpn.delay
|
||||
|
||||
import app.revanced.patcher.patch.bytecodePatch
|
||||
import app.revanced.util.returnEarly
|
||||
|
||||
@Suppress("unused")
|
||||
val removeDelayPatch = bytecodePatch(
|
||||
name = "Remove delay",
|
||||
description = "Removes the delay when changing servers.",
|
||||
) {
|
||||
compatibleWith("ch.protonvpn.android")
|
||||
|
||||
execute {
|
||||
longDelayFingerprint.method.returnEarly(0)
|
||||
shortDelayFingerprint.method.returnEarly(0)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user