Skip to content

Conversation

@lloydeverett
Copy link

This PR adds the option to have a ruleset unblocked for a user-selected duration after the delay page finishes counting. The max duration can be selected as a per-ruleset setting as well. This should work in tandem with the normal blocking schedule in the same way that the override does.

Why: This makes it possible to use LeechBlock in a similar manner as the many extensions that have popped up that focus on just delaying page access (DelayWebpage, Delay, Mindful Internet Use and so on). The existing model doesn't work too well for that purpose since either all following page accesses on the domain are allowed indefinitely (too permissive) or only the very first page is allowed (too restrictive). The former option also does not let one use the site in another tab or navigate away from the domain and back which can be frustrating. I have seen at least one other person complain about the lack of this feature (see this Hacker News thread) and I'm sure there are others. I think it's a great addition because LeechBlock has a host of features the other extensions don't have and it runs everywhere.

Possible issues: The only issue I see at the moment is that user preferences would not be preserved with this change. The default behaviour of the delay page is unchanged but what was previously a checkbox is now a combobox, so if a user unchecked the "block only first accessed page" option and they updated to this patch the extension would revert to default behaviour until they go back and change it. Not sure how you would deal with this—I suppose one could migrate the old setting to the new one in the setup code.

Not sure how you feel about this, but that's what the PR is for. Thanks for your work on the extension :).

@distbit0
Copy link

distbit0 commented Oct 4, 2024

Yess!!!! This would be so useful. Before finding this I created a feature request thread for exactly this functionality: #496

The $50 bounty to get this integrated still holds, if anyone is willing to.

many thx!

@distbit0
Copy link

distbit0 commented Oct 4, 2024

@proginosko is there anything I can do to merge help get this merged? Or are there any instructions on how I can run/install this manually? many thx

@distbit0
Copy link

distbit0 commented Oct 4, 2024

This idea was also proposed here by someone else, I noticed: https://www.tapatalk.com/groups/leechblock/option-for-having-delaying-page-go-to-override-ins-t548.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants