IdreesInc / Mutable

A powerful app and extension to block content across the web and save your sanity
http://mutable.idreesinc.com
Mozilla Public License 2.0
25 stars 0 forks source link

[Enhancement] Support for regex filters #12

Open ktnjared opened 5 months ago

ktnjared commented 5 months ago

To help fine-tune filtering and reduce clutter by accomidating for things like plurals, leetspeak, shorthand, and other variations.

Example

string: (?i)\bm(icro)?(\$(.*\b)?|soft[[:alnum:]]{1,}|shaft.*\b|sludge\b) (Regex101 sample)

It would allow:

While filtering the following patterns

Microsofties Microshafted Microsludge
M$ Micro$oft Micro$ofties Micro$hafted Micro$ludge M$ Office
m$ micro$oft micro$ofties micro$hafted micro$ludge m$office

Futher regex string examples can be found at https://urre.github.io/mutebot/.

IdreesInc commented 4 months ago

While the most recent version doesn't add regex support, it does improve content parsing so a muted word like "test" will apply to "Test", "Test's", "'Test'", etc. which should hopefully help in the meantime!

jarmitage commented 1 week ago

While the most recent version doesn't add regex support, it does improve content parsing so a muted word like "test" will apply to "Test", "Test's", "'Test'", etc. which should hopefully help in the meantime!

The apostrophe s doesn't seem to work for me.

Related to this issue, wildcards e.g. "test*" would be useful.