From 47ff447f8ec0e5bbc174f34bd7d61b3031276641 Mon Sep 17 00:00:00 2001 From: johnconner122 <107796137+johnconner122@users.noreply.github.com> Date: Sat, 1 Apr 2023 14:08:14 +0500 Subject: [PATCH] fix(youtubevanced/hide-ads): hide more types of ads (#1781) --- .../youtubevanced/ad/general/patch/HideAdsPatch.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/patch/HideAdsPatch.kt b/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/patch/HideAdsPatch.kt index c820e1e4..105b9289 100644 --- a/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/patch/HideAdsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtubevanced/ad/general/patch/HideAdsPatch.kt @@ -35,7 +35,7 @@ class HideAdsPatch : BytecodePatch( val adsListRegister = (instruction(insertIndex - 2) as Instruction21c).registerA listOf( - "video_display_full_buttoned_layout", + "_buttoned_layout", "full_width_square_image_layout", "_ad_with", "landscape_image_wide_button_layout", @@ -46,7 +46,9 @@ class HideAdsPatch : BytecodePatch( "video_display_full_layout", "hero_promo_image", "statement_banner", - "primetime_promo" + "primetime_promo", + "carousel_footered_layout", + "feature_grid_interstitial" ).forEach { component -> addInstructions( insertIndex, """ @@ -60,4 +62,4 @@ class HideAdsPatch : BytecodePatch( return PatchResultSuccess() } -} \ No newline at end of file +}