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

Delay process happens 2 times a lot of the time. #490

Open mgmmgm14 opened 2 months ago

mgmmgm14 commented 2 months ago

I use leechblock on all ( * ) sites to make me wait after every new page.

Many times when clickinkg on a link I have to wait for 2 delay process instead of 1 and it is very annoying because it adds randomness (slot machine) to the process and is the opposite of what I'm looking for, a predictable response. A few times it happens because url changes / redirects in the process, and others I couldn't find the cause. But it happens a lot. Even when creating this issue, on the new issue button.

The solution would be "skip delays for 5 seconds after exiting the delay page in the same tab".

proginosko commented 2 months ago

Can you provide an example of a website where this happens frequently, so I can test it?

mgmmgm14 commented 2 months ago

www.reddit.com https://www.reddit.com/r/AskMen

the first i remeber, can provide more

proginosko commented 2 months ago

Is the option "Block only first accessed page of site when delaying page is used" selected?

See what happens when you enter the same URL, but with a final / added (e.g., https://www.reddit.com/r/AskMen/). Do you get the double delay in that case as well?

mgmmgm14 commented 2 months ago

Is the option "Block only first accessed page of site when delaying page is used" selected? No

See what happens when you enter the same URL, but with a final / added (e.g., https://www.reddit.com/r/AskMen/). Do you get the double delay in that case as well?

only 1 delay but reddit displays the hyperlink to access the subreddit without the final / and then adds it as a redirect and changes the url.

Happens in firefox and in chrome too, its worse in chrome btw.

proginosko commented 2 months ago

Okay, so the issue is that the browser is adding a final / which triggers another block/delay cycle.

For now, the workaround would be to select "Block only first accessed page of site when delaying page is used".

mgmmgm14 commented 2 months ago

But that Beats the purpose i need. I need the extensión to delay after every new link clicked inside the site so i slow down after every click instead of just before accessing only the first hyperlink in that domain. A constant barrage of delays so i dont spend too much time inside them without hard blocks A time based solution like wait 5 seconds after delay finishes (and click is done or not depending on settings) before Blocking again is what is needed to deal with this redirects like in reddit.com that redirects to reddit.com/?rdt=64262.

mgmmgm14 commented 2 months ago

redirects like in facebook login page "forgot my password" setting that changes url triggers 2 delay cycles.

also leechblock's chrome store site: https://chromewebstore.google.com/detail/blaaajhemilngeeffpbfkdjjoefldkok

proginosko commented 1 month ago

Try this. Go to "Advanced Options" and enter a number (1 or 2 should do it) in the option "Wait __ second(s) after page has loaded before checking blocking conditions".