This is a Chrome extension designed to help users maintain focus by blocking distracting websites with a unique "access pass" system. Here's how it works:
The extension blocks access to potentially distracting websites like social media platforms (Twitter/X, LinkedIn, YouTube, Instagram, Facebook, TikTok, Twitch).
Users can enable/disable "Work Mode" which activates the blocking functionality.
Instead of completely blocking sites, the extension allows temporary access through timed "passes":
- 1-minute "Look something up real quick" pass
- 5-minute "Do a little research" pass
- 15-minute "I'm on a break" pass
The extension provides detailed analytics of pass usage:
- 24-hour view: Shows pass usage broken down by hour
- 7-day view: Shows daily pass usage trends over the past week
- Interactive charts with hover effects to display detailed usage information
The extension tracks how many passes of each duration are used per day and hour, with data organized in a date-based storage system that resets at midnight.
Handles the core blocking logic, pass management, and tab monitoring. Implements:
- Smart URL matching to block entire domains or specific paths
- Alarm-based pass expiration system
- Date-based storage system for tracking pass usage
Provides UI for toggling work mode and managing blocked sites:
- Add/remove sites from block list
- Toggle Work Mode on/off
Shows when a blocked site is accessed, offering:
- Access pass options with usage counters
- Interactive data visualization of pass usage
- Toggle between 24-hour and 7-day analytics views
Displays a countdown timer on sites accessed via a pass:
- Shows remaining time in minutes and seconds
- Automatically expires when time runs out
Handles site-specific interactions:
- Detects when a user is on a blocked site
- Communicates with background script for pass management
Uses a sophisticated date-based object structure:
- Date-keyed objects (YYYY-MM-DD format) with hour-keyed nested objects
- Stores pass usage data by specific date and hour
- Makes it easy to retrieve historical data for any time period
- Supports advanced analytics features
- User adds distracting websites to the block list via the popup
- When Work Mode is enabled and user tries to access a blocked site, they're redirected to the blocked.html page
- User can choose to get temporary access by selecting one of the timed passes
- The extension displays a countdown timer on the accessed site
- The extension tracks pass usage and automatically revokes access when the time expires
- User can view their usage patterns through interactive charts to become more mindful of their browsing habits
This extension essentially functions as a "distraction rehabilitation center" that helps users be more mindful of their browsing habits while still allowing controlled access when needed.