anddea / revanced-patches

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

feat(YouTube): Custom filters whitelist #397

Open Francesco146 opened 2 months ago

Francesco146 commented 2 months ago

Application

YouTube

Feature description

Add an option for some custom filters, that are considered to be whitelisted from the current filters.

For example: • Custom filters: shelf_header • Custom filters whitelist: shelf_header$History

now all shelf_header components are hidden, but not the components matching the whitelist filter.

This is useful when a component name is too generic and includes more components in once.

Motivation

There's plenty of reasons why this could be useful:

Acknowledgements

Francesco146 commented 2 months ago

I've posted this so i don't forget, this week I'll take a look if it's a feasible thing for me

anddea commented 2 months ago

Good idea, it would be great to collect custom filters (with screenshots), so people know about them. Most of the people don't even know how to use custom filters.

Okay, I'll wait if you can implement the solution.

Francesco146 commented 2 months ago

refer to these PR:

integrations: https://github.com/anddea/revanced-integrations/pull/9

patches: https://github.com/anddea/revanced-patches/pull/409