Discord → LiveContainer (iOS)

Redirect Discord links to LiveContainer so they open in the containerized Discord app on iOS.

ئاپتورى
sharmanhall
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
0
باھا نومۇرى
0 0 0
نەشرى
0.5
قۇرۇلغان ۋاقتى
2025-09-23
يېڭىلانغان ۋاقتى
2025-09-23
Size
5.4 KB
ئىجازەتنامىسى
MIT
قوللايدىغىنى
بارلىق بېكەتلەر

Discord → LiveContainer (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


What it does

  • Auto-redirects when you’re browsing discord.com (also ptb.discord.com / canary.discord.com) in Safari to LiveContainer.
  • Rewrites Discord links on any site so tapping them opens Discord inside LiveContainer.
  • Supports discord.gg invite links and the legacy discordapp.com host.
  • Uses the LC scheme:
    livecontainer://open-web-page?url=BASE64(https://…discord link…)
  • Adds a tiny lc=1 guard to avoid bounce loops.
  • Catches dynamically inserted links (MutationObserver) and uses a global capture fallback for delegated clicks.
  • iOS-only safeguard (won’t trigger on desktop).
  • Runs at document-start for quicker, more reliable redirects.
  • @noframes so embeds/ads in iframes aren’t touched.

Requirements

  • iPhone/iPad with Safari.
  • LiveContainer installed.
  • Discord installed inside LiveContainer.
  • A userscript manager on iOS:
    • Tampermonkey for Safari, or
    • The free Userscripts app.

How to use

  1. Install/enable this userscript.
  2. Make sure Discord is installed in LiveContainer.
  3. Visit any discord.com page or tap a discord.gg invite anywhere.
    → Safari hands it to LiveContainer, which opens Discord in the container.

Options (edit at top of script)

  • 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.

Privacy

  • No analytics, no remote calls.
  • Operates entirely on-device by intercepting clicks and changing navigation.

Known limitations / notes

  • This targets first-party Discord HTTPS: discord.com, discord.gg, and legacy discordapp.com.
    It does not hijack CDN/media hosts like cdn.discordapp.com or media.discordapp.net.
  • Invite landing behavior relies on Discord’s universal link handling inside LiveContainer; behavior can vary by app version.

Uninstall / disable

  • Turn off the script in your userscript manager.
  • Or set AUTO_REDIRECT_ON_DISCORD_PAGES = false to keep browsing the website but still rewrite links elsewhere.

Changelog

  • v0.5@run-at document-start, @noframes, double-hook guard, global click fallback, safer Base64, PTB/Canary + discord.gg support, CDN/media host exclusions.
  • v0.4 – First public release: auto-redirect, link rewriting, loop guard, dynamic link handling, iOS check.

License

MIT