mogproject / yay-filter

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

Filter In, instead of Filter Out #21

Open doctormo opened 2 years ago

doctormo commented 2 years ago

Sometimes I'd like to see comments that mention a specific keyword, but currently yay only removes items with certain keywords.

deevroman commented 2 years ago

There is a workaround with regular expressions: ^((?!keyword).)*$

from: https://stackoverflow.com/questions/957379/invert-match-with-regexp

mogproject commented 2 years ago

Sure, that workaround should work. And I don't come up with such a use case. Why don't you just find the keyword in page? I'm curious if there is enough demand.

deevroman commented 2 years ago

Youtube does not load all the comments at once, you need to scroll the page. The extension also removes unnecessary comments and forces YouTube to upload new ones