Instagram → LiveContainer (iOS)

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

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
sharmanhall
일일 설치 수
0
총 설치 수
5
평점
0 0 0
버전
0.5
생성일
2025-09-23
갱신일
2025-09-23
크기
4.82KB
라이선스
MIT
적용 사이트
모든 사이트

Instagram → LiveContainer (iOS)

Redirect any Instagram HTTPS link (including instagr.am and ig.me DM links) to the LiveContainer app on iOS so it opens in your containerized Instagram. No tracking, no external requests—just smart link handling.

Author: @sharmanhall


What it does

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

Options (edit at top of script)

  • VERBOSE – console logging.
  • AUTO_REDIRECT_ON_INSTAGRAM_PAGES – bounce automatically when already on Instagram.
  • REWRITE_LINKS_ON_ALL_PAGES – intercept Instagram 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 first-party Instagram HTTPS domains: instagram.com, instagr.am, and ig.me.
    It does not chase l.instagram.com redirects or generic shorteners.
    If a page exposes an expanded URL attribute pointing to Instagram, the script will use it.
  • Some Instagram paths (Reels, Stories, DMs) rely on the app’s universal link handling. Behavior can vary by version when run inside LiveContainer.

Uninstall / disable

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

License

MIT