mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-03 21:22:57 +01:00
fix(youtubevanced/hide-ads): hide more types of ads (#1781)
This commit is contained in:
parent
ef8f26fb97
commit
47ff447f8e
@ -35,7 +35,7 @@ class HideAdsPatch : BytecodePatch(
|
|||||||
val adsListRegister = (instruction(insertIndex - 2) as Instruction21c).registerA
|
val adsListRegister = (instruction(insertIndex - 2) as Instruction21c).registerA
|
||||||
|
|
||||||
listOf(
|
listOf(
|
||||||
"video_display_full_buttoned_layout",
|
"_buttoned_layout",
|
||||||
"full_width_square_image_layout",
|
"full_width_square_image_layout",
|
||||||
"_ad_with",
|
"_ad_with",
|
||||||
"landscape_image_wide_button_layout",
|
"landscape_image_wide_button_layout",
|
||||||
@ -46,7 +46,9 @@ class HideAdsPatch : BytecodePatch(
|
|||||||
"video_display_full_layout",
|
"video_display_full_layout",
|
||||||
"hero_promo_image",
|
"hero_promo_image",
|
||||||
"statement_banner",
|
"statement_banner",
|
||||||
"primetime_promo"
|
"primetime_promo",
|
||||||
|
"carousel_footered_layout",
|
||||||
|
"feature_grid_interstitial"
|
||||||
).forEach { component ->
|
).forEach { component ->
|
||||||
addInstructions(
|
addInstructions(
|
||||||
insertIndex, """
|
insertIndex, """
|
||||||
@ -60,4 +62,4 @@ class HideAdsPatch : BytecodePatch(
|
|||||||
|
|
||||||
return PatchResultSuccess()
|
return PatchResultSuccess()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user