A powerful browser extension that helps you stay focused and block distractions while working or studying. CodeFocus combines website blocking, ad blocking, and focus timer features in one simple interface.
- Ad Blocking: Blocks intrusive ads and trackers across all websites
- Focus Mode: Block distracting websites during work sessions
- Whitelist: Allow specific websites even in focus mode
- Block Counter: Track how many ads and trackers have been blocked
- Customizable: Set your own focus session duration and break times
- Sync Across Devices: Settings are synced with your Google account
- Download the latest release or clone this repository
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in the top-right corner)
- Click "Load unpacked" and select the extension directory
- Pin the extension to your toolbar for easy access
- Click the CodeFocus icon in your browser's toolbar
- Block Websites:
- Add websites to block during focus sessions
- Toggle focus mode on/off
- Set custom focus session durations
- Automatically blocks ads and trackers
- View blocked ads counter in the popup
- Whitelist specific sites where you want to allow ads
- Start a focus session with your preferred duration
- Take scheduled breaks between sessions
- Customize work/break intervals in settings
You can customize the extension by:
-
Modifying Defaults:
- Edit
background.jsto change default blocked sites - Adjust timer settings in
popup.js - Update the block list in the extension settings
- Edit
-
Theming:
- Customize colors and styling in
popup.css - Add your own icons in the
iconsfolder
- Customize colors and styling in
CodeFocus is designed with your privacy in mind:
- All processing happens locally in your browser
- No data is collected or sent to external servers
- Open source and transparent code
Contributions are welcome! Please read our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
If you find this extension useful, please consider giving it a ⭐️ on GitHub or leaving a review on the Chrome Web Store.
Made with ❤️ by [Your Name]
This extension requires the following permissions:
storage: To save your blocked sites and preferencestabs&webNavigation: To monitor and block website navigationalarms: For the focus timer functionality
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
