personal-blocklist icon indicating copy to clipboard operation
personal-blocklist copied to clipboard

Support more patterns to matching

Open wildskyf opened this issue 5 years ago • 3 comments

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:

  • if URL matches /facebook|instagram/, block it.
  • if Title matches *.cn, block it.
  • if URL contains string-waat, block it.
  • if URL exactly matches https://www.pinterest.com/pin/387309636705112790, block it.

wildskyf avatar Oct 20 '19 16:10 wildskyf

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

taxen avatar Nov 28 '19 12:11 taxen

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. :)

wildskyf avatar Dec 02 '19 12:12 wildskyf

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.

taxen avatar Dec 04 '19 05:12 taxen