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

Blocking not working when clicking links on certain websites #93

Open evavh opened 1 year ago

evavh commented 1 year ago

When blocking certain pages on websites like Reddit and Youtube, these pages can still be accessed when clicking a link on a page that is not blocked. I have also had this issue across domains, specifically with a Play Store link on a businesses website. This happens with both blacklisted URLs and non-whitelisted URL's in whitelist mode.

Your environment

Firefox 110.0.1 (64-bit) Extension version 2.8.0

Steps to reproduce

Add the following URL to the blacklist: https://www.youtube.com/@BBCNews Go to https://www.youtube.com/results?search_query=bbc Click the first search result for the BBCNews Youtube page. You can now access the blocked page unrestricted, with the blocked URL displayed in the address bar.

Adding * before blocked URLs (when adding them without the https) as suggested in #23 does not solve the problem.

Expected behaviour

The page should be blocked, as it is when the URL is entered into the address bar directly.

Actual behaviour

The URL in the address bar changes to the blocked URL, but the page is not blocked.