ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
1.95k stars 222 forks source link

feat(YouTube - Hide description components): Hide 'Key concepts' section #3324

Open ILoveOpenSourceApplications opened 2 weeks ago

ILoveOpenSourceApplications commented 2 weeks ago

Feature description

In the description of certain informational videos, there's another section called 'Key concepts'. A patch which will hide this section.

image

Motivation

The problem is hide chapters section uses macro_makers_carousel and hence toggling it on will still hide both sections. With the introduction of this patch, Hide chapters section and Hide key concepts section can now be separated. For chapters: ^macro_markers_carousel.eml$chapters_horizontal_shelf For key concepts: ^macro_markers_carousel$learning_concept

06-10 19:05:21.008 13232 13232 D revanced: LithoFilterPatch: Searching ID: null Path: macro_markers_carousel.eml|d933604104a4a354|CellType|carousel_listener.eml|d56813604510a92b|ContainerType| BufferStrings: macro_markers_carousel_shelf_0Γ¥Öchapters_horizontal_shelfΓ¥Ö
06-10 19:05:21.076 13232  3204 D revanced: LithoFilterPatch: Searching ID: macro_markers_carousel.eml|d933604104a4a354 Path: macro_markers_carousel.eml|d933604104a4a354|CellType| BufferStrings: macro_markers_carousel.horizontal_shelf_slotsΓ¥Öhorizontal_shelf_slots.eml|9759d42c3246a45cΓ¥Ölearning_concept_macro_markers_carousel_shelf_0Γ¥Öcarousel_listener.eml|d56813604510a92bΓ¥Ö1718026477149505265Γ¥Ömacro_markers_carousel.eml|d933604104a4a354Γ¥Ö

Acknowledgements

ILoveOpenSourceApplications commented 2 weeks ago

Video for reference: https://www.youtube.com/watch?v=AI-weq8T-5A

ILoveOpenSourceApplications commented 2 weeks ago

I would have opened a PR for this but I have no idea what to do differently when ByteArrayFilterGroup is used.