ReVanced / revanced-patches

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

feat(patch): Spoiler Protection/Hide videos based on list of words or phrases #1393

Closed timmyp53 closed 7 months ago

timmyp53 commented 1 year ago

Application

Revanced

Issue

Hiding or blocking spoilers for topics from being visible.

Patch

Is it possible to develop spoiler protection based on personal word and phrase list?

Motivation

Spoiling of trending tv shows, films, games, and various other topics is hard to avoid on YouTube mobile apps. It would be nice to hide images, videos, and text based on a personal list.

Acknowledgements

indrastorms commented 1 year ago

already has Screenshot_20230131-090033_YouTube

oSumAtrIX commented 1 year ago

This won't work, the custom filter filters for component names.

timmyp53 commented 1 year ago

This won't work, the custom filter filters for component names

Thank you for replying. I was just going to say I tried this already and asked about it in the discord.

HeroGalak commented 9 months ago

Can https://github.com/ReVanced/revanced-patches/pull/2682 be used to implement this feature?

oSumAtrIX commented 9 months ago

Since its released, you could try and see

LisoUseInAIKyrios commented 9 months ago

Yes it should work.

The only caveat is the case sensitivity, so you may have to put the same topic multiple times with different casing. ie: ^home_video_with_content.eml$Star Wars ^home_video_with_content.eml$star wars ^home_video_with_content.eml$STAR WARS

Can also hide shorts using: ^shorts_video_cell$Star Wars