Say goodbye to distractions and hello to productivity with NYX, the ultimate website blocker.
- Total Control: Block any website for a specified duration.
- Seamless Progress Saving: NYX automatically saves your progress.
- Stylish Interface: Enjoy a sleek 'NYX' border effect on blocked websites.
- Privacy-Focused: No data collection, only local storage, and no external dependencies.
- Open the Popup: Just a click away.
- Enter URL & Duration: Specify the website and blocking time.
- Click 'Block NYX': The site is blocked.
- Automatic Unblock: After the set duration, freedom reigns again.
NYX Website Blocker flaunts a slick Popup for easy interaction. Enter the URL, set the duration, click, and focus on what matters.
-
Clone the Repository:
git clone https://github.com/MishanPoudel/nyx.git
-
Load the Extension:
- Navigate to
chrome://extensions/
. - Enable Developer mode.
- Click Load unpacked and select the cloned directory.
- Navigate to
NYX is now ready to block distractions!
Crafted with HTML, CSS, and JavaScript, NYX leverages Chrome Developer Tools for seamless development.
manifest.json
: Defines metadata, permissions, and functionality.background.js
: Service worker and core logic.popup.html
: Interactive popup window.popup.css
: Stylesheet for the popup.popup.js
: Logic controller for the popup.
- Click the NYX extension icon.
- Enter the website URL (e.g.,
instagram.com
). - Set the duration (hours and minutes).
- Click Block Website.
- Click the Screen Time tab.
- View daily website usage.
- Compare usage with visual bars.
- Filter for sites with over 1 minute of usage.
- Debounced Updates: Screen time updates are debounced to avoid frequent saves.
- Efficient DOM Updates: UI updates are efficiently managed to reduce reflows.
If NYX - The Ultimate Website Blocker adds value to your life, please star the repository! Your support keeps us motivated.
NYX prioritizes your privacy:
- No data collection.
- Local storage only.
- No external dependencies.
- No tracking or analytics.