GitHub - rogulia/block-youtube-home-chrome-extension: Chrome extension that redirects the YouTube homepage to your to-do list — or any URL — so you skip the feed and stay focused. Search and videos still work. · GitHub
/" data-turbo-transient="true" />
Skip to content
Search or jump to...
Search code, repositories, users, issues, pull requests...
-->
Search
Clear
Search syntax tips
Provide feedback
--><br>We read every piece of feedback, and take your input very seriously.
Include my email address so I can be contacted
Cancel
Submit feedback
Saved searches
Use saved searches to filter your results more quickly
-->
Name
Query
To see all available qualifiers, see our documentation.
Cancel
Create saved search
Sign in
/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up
Appearance settings
Resetting focus
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
rogulia
block-youtube-home-chrome-extension
Public
Notifications<br>You must be signed in to change notification settings
Fork
Star
main
BranchesTags
Go to file
CodeOpen more actions menu
Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit
History<br>6 Commits<br>6 Commits
dist
dist
icons
icons
store
store
.gitignore
.gitignore
CLAUDE.md
CLAUDE.md
LICENSE
LICENSE
PRIVACY.md
PRIVACY.md
README.md
README.md
STORE_LISTING.md
STORE_LISTING.md
constants.js
constants.js
content.js
content.js
manifest.json
manifest.json
popup.html
popup.html
popup.js
popup.js
View all files
Repository files navigation
YouTube Home Blocker — Redirect & Focus
A tiny Manifest V3 Chrome extension that redirects the YouTube homepage<br>(https://www.youtube.com/) to any URL you choose, so you skip the endless<br>recommendations feed. The rest of YouTube — search, video pages, subscriptions,<br>history — keeps working normally.
Why
The YouTube homepage feed is the single biggest time sink on the site. This<br>extension removes it without breaking anything else: open youtube.com and you<br>land on your task list, calendar, a blank page — whatever you set.
How it works
A content script runs at document_start on every YouTube page. Only when the<br>path is exactly / it calls location.replace() to your chosen URL. The early<br>injection redirects the feed before it renders; the exact-path guard makes sure<br>every other YouTube page is untouched. It also re-checks on YouTube's in-app<br>(yt-navigate-finish) navigation, so clicking the logo to go "home" is redirected<br>too — not just a fresh page load.
Your redirect URL is stored in chrome.storage.sync and never leaves your<br>browser.
Install
From the Chrome Web Store (recommended):<br>YouTube Home Blocker — Redirect & Focus
Install from source
Open chrome://extensions.
Enable Developer mode (top right).
Click Load unpacked and select this directory.
Click the extension icon, enter the URL you want, and press Save .
The default redirect is the Todoist Today view<br>(https://app.todoist.com/app/today) — change it any time from the popup.
Project layout
File<br>Purpose
manifest.json<br>Extension manifest (MV3), permissions, icons.
constants.js<br>Shared default redirect URL, used by content.js and popup.js.
content.js<br>Redirects the homepage. Injected at document_start.
popup.html<br>Toolbar popup UI.
popup.js<br>Loads/saves the redirect URL in chrome.storage.sync.
icons/<br>Toolbar and store icons (16/32/48/128).
No build step, no dependencies — plain JS/HTML loaded directly by Chrome.
License
MIT © Iurii Rogulia
About
Chrome extension that redirects the YouTube homepage to your to-do list — or any URL — so you skip the feed and stay focused. Search and videos still work.
iurii.rogulia.fi/projects/block-youtube-home
Topics
javascript
chrome-extension
productivity
youtube
todoist
redirect
browser-extension
focus
distraction-free
manifest-v3
anti-procrastination
Resources
Readme
License
MIT license
Uh oh!
There was an error while loading. Please reload this page.
Activity
Stars
stars
Watchers
watching
Forks
forks
Report repository
Releases
No releases published
Packages
Uh oh!
There was an error while loading. Please reload this page.
Contributors
Uh oh!
There was an error while loading. Please reload this page.
Languages
HTML<br>84.8%
JavaScript<br>15.2%
You can’t perform that action at this time.