From e353ed0b0fe78feae65f1ad2f6567c1e9aa9c71d 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 a32af951566a7187ae2618ef08f9298f78f8ea8c. --- .../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)))