Skip to content

Ability to filter out by username #26

Description

@wijayaerick

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

  • Enable word filter
  • Use regex
  • Apply filter to username <-- New feature

Edge case

  • I think the language filter should not be applied on usernames (e.g. if enable Japanese language whitelist filter, we may not want to remove Japanese comments written by non-Japanese usernames).

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>)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions