From 49b4ca9fd205b84927832ecdbead911b7776ddcf 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 d9dcedd9f467bb8eca7c7494e08c6b924a58208d. --- .../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)))