Redirect Discord links to LiveContainer so they open in the containerized Discord app on iOS.
Redirect any Discord HTTPS link (including discord.gg invites and PTB/Canary) to the LiveContainer app on iOS so it opens in your containerized Discord.
No tracking, no external requests—just smart link handling.
Author: @sharmanhall
discord.com (also ptb.discord.com / canary.discord.com) in Safari to LiveContainer.discord.gg invite links and the legacy discordapp.com host.livecontainer://open-web-page?url=BASE64(https://…discord link…)lc=1 guard to avoid bounce loops.@noframes so embeds/ads in iframes aren’t touched.discord.com page or tap a discord.gg invite anywhere.VERBOSE – console logging.AUTO_REDIRECT_ON_DISCORD_PAGES – bounce automatically when already on Discord.REWRITE_LINKS_ON_ALL_PAGES – intercept Discord links anywhere.ADD_LC_FLAG – append lc=1 to prevent back/forward loops.discord.com, discord.gg, and legacy discordapp.com.cdn.discordapp.com or media.discordapp.net.AUTO_REDIRECT_ON_DISCORD_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, PTB/Canary + discord.gg support, CDN/media host exclusions.MIT