Add "Count time on allowed sites" option#689
Open
MrDetox wants to merge 1 commit intoproginosko:masterfrom
Open
Add "Count time on allowed sites" option#689MrDetox wants to merge 1 commit intoproginosko:masterfrom
MrDetox wants to merge 1 commit intoproginosko:masterfrom
Conversation
- Add new checkbox option in full options mode - Count time spent on exception URLs towards block set limits - Exception sites remain accessible but contribute to time limits - Maintains blocking behavior for main sites when limits are reached Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds an option so that time spent on exception URLs (sites with
+in the block set) counts toward the set's time limit. Blocking and allowing of sites is unchanged; only what counts toward the limit changes.Use case: The user blocks
[youtube.com](http://youtube.com/)after 30 min but adds the exception+[youtube.com/watch](http://youtube.com/watch)so they can still watch specific YouTube videos. The idea is to allow only videos they deliberately open (e.g. from a Google search or a direct link), not browsing and discovery on YouTube itself. So they get about 30 minutes of YouTube in total, and after that only the main site is blocked; exception URLs like[youtube.com/watch](http://youtube.com/watch)stay allowed.Current behaviour: While on YouTube, the 30-minute timer runs. The user can open and watch videos. While they watch videos on
[youtube.com/watch](http://youtube.com/watch), the 30-minute timer does not run.What the new option changes: When the new setting is enabled, the 30-minute timer also runs on exception URLs such as
+[youtube.com/watch](http://youtube.com/watch). When the 30 minutes are used up, the main site is blocked; exception pages stay accessible and the timer is hidden on them.Changes
Testing