A personalised Chrome Extension that helps users block distracting websites and stay focused on their work by setting custom block durations and managing blocked websites through a modern dashboard.
- Website blocking
- Custom block durations
- Dashboard management
- Chrome storage persistence
- Blocked page redirection
- Live countdown timers
- Toggle-based website activation
- Website favicon support
- Custom extension branding
- HTML
- CSS
- JavaScript
- Chrome Extension Manifest V3
FocusGuard/
│
├── assets/
│ ├── img16.png
│ ├── img48.png
│ ├── img128.png
│ └── delete.png
│
├── background/
│ └── background.js
│
├── blocked/
│ ├── blocked.html
│ ├── blocked.css
│ └── blocked.js
│
├── dashboard/
│ ├── dashboard.html
│ ├── dashboard.css
│ └── dashboard.js
│
├── popup/
│ ├── popup.html
│ ├── popup.css
│ └── popup.js
│
├── manifest.json
├── README.md
└── .gitignore
Clone the repository:
git clone https://github.com/your-username/FocusGuard.gitOr download the ZIP file and extract it.
Navigate to:
chrome://extensions
Turn on the Developer Mode toggle located in the top-right corner of the Extensions page.
Click:
Load unpacked
Then select the FocusGuard project folder.
Click the Extensions icon in the Chrome toolbar and pin FocusGuard for quick access.
- Open the FocusGuard Dashboard.
- Enter the website domain (e.g.,
instagram.com). - Enter the block duration in minutes.
- Click Add Website.
- Locate the website in the Blocked Websites section.
- Turn on the toggle.
- Enter the desired block duration when prompted.
- Confirm the action.
- Attempts to access the blocked website will redirect to a custom blocked page.
- A live countdown timer will display the remaining blocked time.
- The dashboard will show the remaining time for each active block.
Once the timer reaches zero:
- The toggle automatically switches off.
- The website becomes accessible again.
- The blocked page automatically redirects back to the original website.
Click the delete icon beside the website entry to permanently remove it from the blocked websites list.
- Productivity analytics
- Focus session statistics
- Website categories
- Daily usage reports
- Focus streak tracking
- Enhanced dashboard visualizations
- Cloud synchronization
Phase 1 Completed