Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 502feaf

Browse files
author
OxrxL
authored
perf(youtube/general-ads-patch): reduce amount of components to filter (#204)
1 parent b4e0341 commit 502feaf

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

app/src/main/java/app/revanced/integrations/patches/LithoFilterPatch.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public GeneralBytecodeAdsPatch() {
214214
//"full_width_square_image_layout",
215215
"video_display_full_buttoned_layout",
216216
"_ad",
217-
"ad_",
217+
"ad_badge",
218218
"ads_video_with_context",
219219
"banner_text_icon",
220220
"cell_divider",
@@ -258,16 +258,11 @@ public GeneralBytecodeAdsPatch() {
258258
public boolean filter(final String path, final String identifier) {
259259
// Do not block on these
260260
if (ReVancedUtils.containsAny(path,
261+
"comment_thread",
261262
"home_video_with_context",
262263
"related_video_with_context",
263264
"search_video_with_context",
264-
"download_",
265-
"library_recent_shelf",
266-
"menu",
267-
"root",
268-
"-count",
269-
"-space",
270-
"-button"
265+
"horizontal_shelf"
271266
)) return false;
272267

273268
for (var rule : register) {

0 commit comments

Comments
 (0)