proginosko / LeechBlockNG

LeechBlock NG (Next Generation) for Firefox is a simple productivity tool designed to block those time-wasting sites that can suck the life out of your working day. All you need to do is specify which sites to block and when to block them.
https://www.proginosko.com/leechblock/
Mozilla Public License 2.0
723 stars 66 forks source link

Only Non-Private Tabs Blocking is Unreliable without Delay #432

Closed ReylordDev closed 7 months ago

ReylordDev commented 7 months ago

Hey there,

First of all, thank you so much for your work on this amazing extension.

When setting to block pages in only non-private tabs, pages still get blocked in incognito mode for me. However, when using the setting to wait a few seconds after the page has loaded before checking blocking conditions, this issue is mostly resolved. I need to use at least 3 seconds of delay and some unreliability remains.

I have tested this with a minimal block set.

proginosko commented 7 months ago

You're using Firefox, correct?

ReylordDev commented 7 months ago

Yes, Firefox 125.0.1

proginosko commented 7 months ago

Okay, thanks for reporting this. Good catch! I can see why this is happening. It has to do with the fact that LB doesn't get notified that a page is in incognito mode until the initial page content has been loaded. But I should be able to fix this in the next version. In the meantime, using the "Wait __ second(s)..." setting under Advanced Options is the best workaround.