YouTube → FreeTube Link Rewriter

Opus-X
2025-12-21T12:12:44Z

Rewrite YouTube links to use the FreeTube protocol handler for opening in the local FreeTube application. Ensures the current page remains unchanged upon clicking.

YouTube → FreeTube Link Rewriter

This userscript automatically rewrites all YouTube links on webpages – including on YouTube.com itself – to use the FreeTube protocol (freetube://), ensuring they open directly in your locally installed FreeTube application upon clicking. It fully handles YouTube's dynamic SPA structure, navigations, direct video loads, and dynamically added links by triggering the protocol and preventing browser navigation. Clicks on links leave the current page unchanged; direct navigation to a YouTube video blanks the page after launching FreeTube. Supports videos, shorts, live streams, playlists, and channels. Ideal for privacy-focused users preferring YouTube content in FreeTube without tracking or ads. Requirement: FreeTube must be installed with a properly registered protocol handler.