YouTube Home Blocker is a simple Chrome extension that helps streamline your viewing experience by replacing the distracting homepage with any URL of your choice. With just a few clicks, regain focus and skip the endless recommendations feed while still having access to the rest of YouTube, including search and subscriptions.
YouTube Home Blocker is a lightweight and efficient Chrome extension designed to enhance productivity by redirecting the YouTube homepage to a custom URL of your choice. With this extension, users can bypass the overwhelming recommendations feed and land directly on a designated webpage, such as a to-do list or calendar, ensuring a focused browsing experience.
https://www.youtube.com/) to any URL that suits your workflow. Users can set their landing page to their task management tool or any other website, thereby eliminating distractions.The YouTube homepage can often be a major distraction due to its continuous feed of suggested videos. This extension addresses this challenge effectively:
https://app.todoist.com/app/today), but this can be adjusted at any time via the extension’s settings.The extension utilizes a content script that runs at document_start on every visit to YouTube. It evaluates if the path is exactly / and then uses location.replace() to redirect as specified. This process not only works for the primary page load but also ensures that any subsequent navigation back to the homepage within the YouTube app is redirected as well.
The project is organized simply without any complex build steps or dependencies:
| File | Purpose |
|---|---|
manifest.json | Defines the extension settings and permissions. |
constants.js | Contains shared constants including the default redirect URL. |
content.js | Handles the homepage redirection logic. |
popup.html | Provides the interface for configuring the redirect URL. |
popup.js | Manages saving/retrieving the redirect URL via chrome.storage.sync. |
icons/ | Contains the extension and store icons in various sizes. |
This extension is built with plain JavaScript and HTML, ensuring compatibility and ease of use straight out of the box without extra setup.
For those looking to reclaim valuable time spent on distracting video feeds, YouTube Home Blocker offers a practical, no-nonsense solution.
No comments yet.
Sign in to be the first to comment.