maripo / CustomFilter

Google Chrome Extension
blog.maripo.org/2012/01/customblocker_release/
MIT License
65 stars 12 forks source link

How to block if it doesn't contain keyword #143

Open ddaaii opened 7 years ago

ddaaii commented 7 years ago

How do I block elements if it doesn't contain keywords instead of the default 'blocking if it contains'?

andreicaba commented 4 years ago

Indeed, how do you do that?... Tried the regex !(.keyword to be contained.) and... it didn't work(!)... Does the regex work?!...

andreicaba commented 4 years ago

Nevermind, I actually did it with Regex. I checked both „Complete Match” and „Regex” and then used something like this:

^((?!keyword).)*$

by the way, for some reason the escaping char can't be added there (this char: \ )