Daily Site Limit is a Chrome extension that helps you monitor and manage the time you spend on different websites. Set daily time limits for specific sites, get notified when you exceed your limits, and view your browsing stats—all with a simple, user-friendly interface.
- Track Time by Site: Automatically tracks the time you spend on each website (by root domain).
- Set Daily Limits: Add rules to limit your daily time on specific sites.
- In-Page Notification: When you exceed your limit, a dismissible banner appears at the top of the site.
- Stats & Reset: View your daily stats and reset time tracking for any site.
- Easy Rule Management: Add or delete site rules directly from the popup interface.
- Persistent Storage: All data is stored locally in your browser using Chrome's storage API.
- Install the Extension: Load the extension in Chrome (see below).
- Open the Popup: Click the extension icon to open the popup window.
- Status Tab: See your current site's time spent and limit. Reset time if needed.
- Rules Tab: Add new site rules with daily time limits, or delete existing rules.
- Stats Tab: View a summary of your time spent on all tracked sites for the current day.
- Notifications: When you exceed a site's limit, you'll see a red banner at the top of the page (instead of a redirect or block).
- Clone or download this repository.
- Open Chrome and go to
chrome://extensions/. - Enable "Developer mode" (top right).
- Click "Load unpacked" and select the project folder.
- The extension icon should appear in your browser toolbar.
manifest.json— Chrome extension manifest (v3)background.js— Handles time tracking, storage, and messagingcontent.js— Injects the in-page notification bannerpopup.html— The extension's popup UIpopup.js— Logic for the popup (tabs, rules, stats, etc.)popup.css— Styles for the popup UIicon.pngandicons/— Extension icons
- Time is tracked per root domain (e.g.,
youtube.com, not full URLs). - All logic runs locally; no data is sent to any server.
- The extension uses Chrome's
storage.localfor persistence. - The in-page banner is injected via a content script and can be dismissed by the user.
Pull requests and suggestions are welcome! Please open an issue or submit a PR if you have ideas for improvements or bug fixes.
MIT License. See LICENSE for details.
Daily Site Limit helps you take control of your browsing habits and boost your productivity. Enjoy!