AXeL-dev / distract-me-not

:no_entry: A lightweight website blocker with a user friendly interface
https://addons.mozilla.org/addon/distract-me-not/
MIT License
122 stars 14 forks source link

Block Google searches #90

Closed tcdaly closed 1 year ago

tcdaly commented 1 year ago

Is there any way of blocking Google searches for a specific keyword? i.e. block the URL beginning https://www.google.com/search?q=foo, where foo is the search term to be blocked?

Your environment

AXeL-dev commented 1 year ago

Hello,

Yes, simply add the url https://www.google.com/search?q=foo to the blacklist urls as so:

Screen Capture_select-area_20230209225552

Furthermore, you can add an asterisk * at the end of the url to block any keyword starting with foo => https://www.google.com/search?q=foo*.

tcdaly commented 1 year ago

Thank you for your reply.

Unfortunately that doesn't work. Google puts a lot of other text in the URL following the search term, so I tried adding a wildcard * to account for this, i.e.

https://www.google.com/search?q=foo*

But this doesn't help.

However, I tried adding the search term as a keyword under the 'keywords' tab, and that does work, i.e.

/foo/i

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.