iorate / ublacklist

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

Simpler way to match domains? #552

Open pjmattingly opened 3 days ago

pjmattingly commented 3 days ago

I wanted to match the entire gov domain, but simple constructions like:

*://*.gov/

don't seem to work. Checking through the Advanced Features, I found an example for matching "internationalized domain names":

/^https?:\/\/([^/.]+\.)*?xn--/

Which then could be adapted to block gov:

/^https?:\/\/([^/.]+\.)*?gov/

Is there a simpler way? If so I believe it would be helpful to show it in the help documentation.

laylavish commented 14 hours ago

You could just use regular expressions, like this /.*\.gov/