Redirect YouTube links to LiveContainer so they open in the containerized YouTube app.
Redirect any YouTube HTTPS link (including youtu.be) to the LiveContainer app on iOS so it opens in your containerized YouTube.
No tracking, no external requests—just smart link handling.
Author: @sharmanhall
youtube.com / youtu.be in Safari to LiveContainer.livecontainer://open-web-page?url=BASE64(https://…youtube or youtu.be link…)lc=1 guard to avoid bounce loops.@noframes so embeds/ads in iframes aren’t touched.youtube.com / youtu.be page or tap a YouTube link anywhere.VERBOSE – console logging.AUTO_REDIRECT_ON_YOUTUBE_PAGES – bounce automatically when already on YouTube.REWRITE_LINKS_ON_ALL_PAGES – intercept YouTube links anywhere.ADD_LC_FLAG – append lc=1 to prevent back/forward loops.youtube.com and youtu.be).livecontainer:// URLs.https://youtube.com links via “Open in App”.AUTO_REDIRECT_ON_YOUTUBE_PAGES = false to keep browsing the website but still rewrite links elsewhere.@run-at document-start, @noframes, double-hook guard, global click fallback, safer Base64.MIT