Reddit → LiveContainer (iOS)

Redirect Reddit links to LiveContainer so they open in the containerized Reddit app.

Terá de instalar uma extensão como Tampermonkey, Greasemonkey ou Violentmonkey para instalar este script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

Terá de instalar uma extensão como Tampermonkey ou Violentmonkey para instalar este script.

Terá de instalar uma extensão como Tampermonkey ou Userscripts para instalar este script.

Terá de instalar uma extensão como Tampermonkey para instalar este script.

Terá de instalar uma extensão de gestão de scripts de utilizador para instalar este script.

(Já tenho um gestor de scripts de utilizador, deixe-me instalá-lo!)

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão como Stylus para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

Terá de instalar uma extensão de gestão de estilos de utilizador para instalar este estilo.

(Já tenho um gestor de estilos de utilizador, deixe-me instalá-lo!)

Autor
sharmanhall
Instalações diárias
0
Total de instalações
17
Classificações
0 0 0
Versão
0.5
Criado
23/09/2025
Atualizado
23/09/2025
Tamanho
5 KB
Licença
MIT
Aplica-se a
Todos os sites

Reddit → LiveContainer (iOS)

Redirect any Reddit HTTPS link (including redd.it shortlinks) to the LiveContainer app on iOS so it opens in your containerized Reddit. No tracking, no external requests—just smart link handling.

Author: @sharmanhall


What it does

  • Auto-redirects when you’re browsing reddit.com (including old.reddit.com / np.reddit.com) in Safari to LiveContainer.
  • Rewrites Reddit links on any site so tapping them opens Reddit inside LiveContainer.
  • Supports redd.it shortlinks.
  • Uses the LC scheme:
    livecontainer://open-web-page?url=BASE64(https://…reddit or redd.it 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.
  • Reddit 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 Reddit is installed in LiveContainer.
  3. Visit any reddit.com / redd.it page or tap a Reddit link anywhere.
    → Safari hands it to LiveContainer, which opens Reddit in the container.

Options (edit at top of script)

  • VERBOSE – console logging.
  • AUTO_REDIRECT_ON_REDDIT_PAGES – bounce automatically when already on Reddit.
  • REWRITE_LINKS_ON_ALL_PAGES – intercept Reddit 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 script targets HTTPS Reddit links (reddit.com and redd.it).
    It does not chase generic third-party shorteners. If a page exposes an expanded URL (e.g., data-expanded-url) that points to Reddit, the script will use it.
  • Direct media hosts like i.redd.it or v.redd.it aren’t explicitly targeted to avoid hijacking pure media/file links.
    (If you want those in your setup, add them to the redditHosts set.)

Uninstall / disable

  • Turn off the script in your userscript manager.
  • Or set AUTO_REDIRECT_ON_REDDIT_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, shortlink support.
  • v0.4 – First public release: auto-redirect, link rewriting, loop guard, dynamic link handling, iOS check.

License

MIT