iorate / ublacklist

Blocks specific sites from appearing in Google search results
https://iorate.github.io/ublacklist/
MIT License
5.72k stars 300 forks source link

Feature request: override more general with more specific ones #461

Closed pjmattingly closed 6 months ago

pjmattingly commented 6 months ago

For example, I've set ublacklist to block the ai domain; Since it seems to be full of scammy sites.

But, every once in a while I find sites in the ai domain that I'd like to see in searches; One of these is opencv.ai.

And so, if I enter the following patterns, then opencv.ai remains blocked, though I have setup a rule allowing it be shown and color-coded:

*://*.ai/*
@1*://opencv.ai/*

And so, it would be great if I could override the first rule with the second; Or mark the second rule to override the more general rule.

iorate commented 6 months ago

Highlight rules always override block rules.

The reason why your second rule does not highlight OpenCV.ai is because the host name of OpenCV.ai is www.opencv.ai, not opencv.ai. The following rules will work:

*://*.ai/*
@1*://*.opencv.ai/*