mirror of
https://github.com/revanced/revanced-integrations.git
synced 2025-01-08 19:15:50 +01:00
fix(youtube/general-ads-patch): revert reducing filter exclusions
This commit is contained in:
parent
2ebadaf07f
commit
af86dd8ec6
@ -214,7 +214,7 @@ class GeneralBytecodeAdsPatch extends Filter {
|
|||||||
//"full_width_square_image_layout",
|
//"full_width_square_image_layout",
|
||||||
"video_display_full_buttoned_layout",
|
"video_display_full_buttoned_layout",
|
||||||
"_ad",
|
"_ad",
|
||||||
"ad_badge",
|
"ad_",
|
||||||
"ads_video_with_context",
|
"ads_video_with_context",
|
||||||
"banner_text_icon",
|
"banner_text_icon",
|
||||||
"cell_divider",
|
"cell_divider",
|
||||||
@ -258,12 +258,18 @@ class GeneralBytecodeAdsPatch extends Filter {
|
|||||||
public boolean filter(final String path, final String identifier) {
|
public boolean filter(final String path, final String identifier) {
|
||||||
// Do not block on these
|
// Do not block on these
|
||||||
if (ReVancedUtils.containsAny(path,
|
if (ReVancedUtils.containsAny(path,
|
||||||
"comment_thread",
|
|
||||||
"home_video_with_context",
|
"home_video_with_context",
|
||||||
"related_video_with_context",
|
"related_video_with_context",
|
||||||
"search_video_with_context",
|
"search_video_with_context",
|
||||||
"horizontal_shelf",
|
"comment_thread", // skip blocking anything in the comments
|
||||||
"playlist_add_to_option_wrapper"
|
"download_",
|
||||||
|
"library_recent_shelf",
|
||||||
|
"menu",
|
||||||
|
"root",
|
||||||
|
"-count",
|
||||||
|
"-space",
|
||||||
|
"-button",
|
||||||
|
"playlist_add_to_option_wrapper" // do not block on "add to playlist" flyout menu
|
||||||
)) return false;
|
)) return false;
|
||||||
|
|
||||||
for (var rule : register) {
|
for (var rule : register) {
|
||||||
|
Loading…
Reference in New Issue
Block a user