From f4897e41a9fafe97e952cb5d4d91a9d87ff72b66 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Mon, 10 Oct 2022 22:17:52 +0200 Subject: [PATCH] fix(youtube/video-ads): invert condition to hide ads This reverts commit 7eb2a0b1bc54ae21c0fd1947b0e76a613109fa8a. --- .../revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt index e3d911869..cd4ad5fc5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/video/patch/VideoAdsPatch.kt @@ -49,7 +49,7 @@ class VideoAdsPatch : BytecodePatch( """ invoke-static { }, Lapp/revanced/integrations/patches/VideoAdsPatch;->shouldShowAds()Z move-result v4 - if-eqz v4, :show_video_ads + if-nez v4, :show_video_ads return-object v3 """, listOf(ExternalLabel("show_video_ads", instruction(insertIndex)))