A productivity-focused Chrome extension that blocks distracting websites (with wildcard support) and tracks your browsing time with second-level accuracy. Features a beautiful UI, real-time updates, inactivity detection, and a motivational custom block page.
-
Website Blocking
- Block any site or domain (supports wildcards, e.g.
*.facebook.com) - Toggle blocking on/off easily
- Custom block page with productivity tips and motivational quotes
- Block any site or domain (supports wildcards, e.g.
-
Time Tracking
- Tracks time spent on each website (active tab only)
- Second-level precision, real-time updates
- Excludes time when tab is inactive or browser is unfocused
- Browsing analytics: see your top sites by time spent
-
User Interface
- Clean, modern popup UI
- Easy configuration of blocked sites
- Live session timer and per-site time stats
- Clear all data with one click
-
Local Storage
- All data is stored locally (no external servers)
-
Download the Source
- Download or clone this repository.
-
Load the Extension in Chrome
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (top right)
- Click "Load unpacked"
- Select the folder containing these files
- Open Chrome and go to
-
Start Using
- The extension icon will appear in your toolbar.
- Click to open the popup and configure your blocking/time tracking.
If you want to contribute to this project:
-
Install Dependencies
- Run
pnpm installto install all required dependencies.
- Run
-
Load the Extension
- Follow the installation steps above to load the extension in Chrome.
- Open the extension popup.
- Enter a domain (e.g.
facebook.comor*.reddit.com) and click "Add". - Toggle "Block websites" on/off as needed.
- Blocked sites show a custom motivational page.
- See time spent on the current site (live, updates every second).
- View your top 10 sites by time spent.
- Click "Clear All Data" to reset stats.
facebook.com— blocks facebook.com and all its subpages*.reddit.com— blocks all Reddit subdomains (e.g. www.reddit.com, old.reddit.com)youtube.com— blocks YouTube
developer-distractor-destroyer/
│
├── manifest.json # Chrome extension manifest (MV3)
├── popup.html # Popup UI
├── popup.js # Popup logic
├── background.js # Background service worker (time tracking)
├── content.js # Content script (activity detection)
├── blocked.html # Custom block page
├── rules.json # Declarative net request rules template
└── README.md # This documentation
storage— Store settings and time data locallyactiveTab— Detect the current active tabdeclarativeNetRequest— Block/redirect websitestabs— Listen for tab changeshost_permissions:— Needed to monitor and block all websites
All data is stored locally in your browser. No data is ever sent to any server.
- Focus on one task at a time
- Use the Pomodoro Technique: work 25 min, rest 5 min
- Make a daily to-do list
- Take short breaks and deep breaths
- Move your body for mental clarity
MIT License
Stay focused, achieve more!