Repository navigation
Mouse/Keyboard Activity Condition #793
munindarkr
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, LeechBlock lets users count time only when a tab is active or playing audio. However, on text-heavy tools like ChatGPT or search portals, users often leave the tab in focus when stepping away from the desk. Because these pages produce no sound, the audio filter cannot prevent the timer from running down while the user is completely idle.
I propose adding an optional block-set condition: “Count time only when user activity is detected.”
This feature could work through:
• Monitoring user input (mouse moves, scrolling, or keystrokes) on the focused page.
• Using standard browser idle APIs ( chrome.idle ) with a short threshold (such as 30 to 60 seconds of inactivity).
• Pausing the countdown timer during idle periods and resuming immediately upon input.
This could be implemented via throttled DOM listeners (keystrokes, mouse movement, scrolling), extension APIs like browser.idle and chrome.idle , or the web IdleDetector API. Any of these approaches could automatically pause the timer after a configurable inactivity threshold until user interaction resumes.
Accidental timer exhaustion forces users to artificially inflate their daily allowances or close tabs repeatedly just to step away. Adding an activity-based check would make time-budgeting far more accurate for research and reading workflows. If other users encounter this issue with silent tabs, please upvote!
All reactions