wildskyf / personal-blocklist

Browser Add-on: Blocks domains/hosts from appearing in your Google search results.
https://addons.mozilla.org/en-US/firefox/addon/personal-blocklist/
81 stars 8 forks source link

Support more patterns to matching #36

Open wildskyf opened 5 years ago

wildskyf commented 5 years ago

Current rules is 'if url matches any pattern in list, block it'. (Which mean 'a' will block facebook.com, apple.com.)

I want it support Regex (or wildcard), title match, ... etc, like:

taxen commented 4 years ago

I push this feature as I see lots of junk domains including .tk, .cf, .ml, .gq, *ga etc.

wildskyf commented 4 years ago

Currently, you could add .tk, .cf, .ml, .gq, .ga in order to block those websites from search results.

But it is still better to have this feature. :)

taxen commented 4 years ago

Yes, I figured it out. Instead of .tk, it is better to use '.tk/' with slash so that the pattern only matches when 'tk' comes just before slash. Otherwise, '.tk' also matches '.tking' or anything with 'tk' at the beginning. Still, '.tk/' does not assure this part belongs to top domain, but could belong any part of a URL. I hope https?://.tk/ type regex will be implemented some day.