ccd0 / 4chan-x

Adds various features to anonymous imageboards.
https://www.4chan-x.net/
Other
987 stars 135 forks source link

Filter replies only when OP contains a certain keyword #1190

Open ccd0 opened 7 years ago

ccd0 commented 7 years ago

https://boards.4chan.org/g/thread/57487357#p57489337

Is there a good way to filter certain comments only if the OP has a certain keyword?

later in thread:

I want to filter shitpost from certain /vg/ generals, for example "waifu" in /feg/, "spoonfeed" in /mcg/ and "steamgroup" in /gsg/.

ccd0 commented 7 years ago

A workaround until something like this is implemented:

Put this in subject filters: /\/feg\//;highlight:feg;top:no and this in comment filters: /waifu/i;highlight:feg-hide;top:no and this in custom CSS: .feg ~ .feg-hide {display: none;}

This is only a partial workaround as replies to these posts won't be recursively hidden.

ghost commented 2 years ago

Old issue but still worth asking: any chance we'll ever see this implemented? It could be added as an additional setting asking for a regex rule like thread: or subject: or op-has:

Example: boards:4:vg;op:no;thread:/\/xivg\//i;/zeev/i