AsciiJakob / NoDistractions

Simple, bloat-free website blocker with a focus on intuitiveness
https://addons.mozilla.org/en-US/firefox/addon/nodistractions-website-blocker/
MIT License
3 stars 1 forks source link

Detect URL changes in single page applications #1

Closed AsciiJakob closed 2 months ago

AsciiJakob commented 1 year ago

Since Single Page Applications (SAP) change the url without actually loading a new page, this won't be detected by webrRequest's onBeforeRequest method. This is only an issue with advanced block filters, which is not a central feature of the extension.

reproduce:

  1. Add !*://*.reddit.com/r/kittens/* as a filter
  2. Visit Reddit homepage
  3. Navigate to the r/kitten subreddit through the search bar
  4. The site does not get blocked.