HackerTrans
トップ新着トレンドコメント過去質問紹介求人

rogulia

1 カルマ登録 4 か月前

投稿

[untitled]

1 ポイント·投稿者 rogulia·6 日前·0 コメント

Show HN: Vatnode – EU VAT validation REST API with national registry fallback

vatnode.dev
4 ポイント·投稿者 rogulia·先月·0 コメント

Show HN: A Chrome extension that redirects only the YouTube homepage

github.com
2 ポイント·投稿者 rogulia·先月·1 コメント

[untitled]

1 ポイント·投稿者 rogulia·先月·0 コメント

[untitled]

1 ポイント·投稿者 rogulia·3 か月前·0 コメント

コメント

rogulia
·先月·議論
[flagged]
rogulia
·先月·議論
I kept opening YouTube for one specific video and losing time to the home feed, but I still use search, video pages and subscriptions, so a full block was too much. This redirects only youtube.com/ to a URL you choose and leaves everything else alone.

Implementation notes: - Manifest V3, no build step, no dependencies, no analytics. - A content script runs at document_start and only acts when the path is exactly "/", so the feed is redirected via location.replace() before it renders. - It also re-checks on YouTube's yt-navigate-finish event, so in-app navigation back to the homepage (e.g. clicking the logo) is caught too. - It skips the redirect when the target equals the current URL to avoid loops. - Permissions are limited to storage (to save the chosen URL in chrome.storage.sync) and host access to www.youtube.com. Nothing leaves the browser.

Feedback welcome, especially on YouTube navigation edge cases I might be missing.
rogulia
·2 か月前·議論
[flagged]
rogulia
·2 か月前·議論
[flagged]