mogproject / yay-filter

Yet another YouTube comment filter.
Apache License 2.0
16 stars 4 forks source link

Ability to filter out by username #26

Open wijayaerick opened 2 years ago

wijayaerick commented 2 years ago

First of all, thank you for maintaining this amazing project! I find this extension very helpful to filter unwanted comments and replies from spam accounts.

It would be nice to have the ability to filter comment/replies by words in the username. Example:

Blocked words

Edge case

Use case

In many cases, I am able to filter spam accounts by their comments. However, it's not rare that spam accounts have unwanted words/characters in their username instead of in comments. I'm looking at you, fake verified checkmark 🅥


Edit:

In case anyone else stumbles on this, I ended up using uBlock Origin and added these filters:

! removes comments containing text (both in username & comment) that matches the regex
youtube.com##ytd-comment-renderer.ytd-comment-thread-renderer:has-text(<regex>):nth-ancestor(1)
! removes replies containing text (both in username & comment) that matches the regex
youtube.com##ytd-comment-renderer.ytd-comment-replies-renderer:has-text(<regex>)
tigercoding56 commented 1 year ago

also it could be nice to block users by specific patterns in their pfp (for example average color or how close it is to the profile picture of another user you blocked ) but this could be difficult to implement