[GH-ISSUE #868] [Feature Request] Userscript / Tampermonkey-style Support in LiveContainer (iOS) #782

Closed
opened 2026-03-03 15:36:15 +03:00 by kerem · 1 comment
Owner

Originally created by @DeerSpotter on GitHub (Sep 27, 2025).
Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/868

Add basic support for running userscripts inside LiveContainer using WKWebView’s WKUserScript. This would let users bring Tampermonkey/Greasemonkey scripts into iOS containers.


Proposal

  • Allow importing .user.js files with metadata (@match, @run-at, @grant).

  • Inject scripts at document-start or document-end based on metadata.

  • Provide a minimal Greasemonkey API shim:

    • GM_getValue / GM_setValue
    • GM_addStyle
    • GM_xmlhttpRequest (via native bridge)

Benefits

  • Enables automation and UI customization currently only possible on desktop.
  • Makes LiveContainer far more versatile without breaking iOS sandbox rules.
Originally created by @DeerSpotter on GitHub (Sep 27, 2025). Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/868 Add basic support for running userscripts inside LiveContainer using WKWebView’s `WKUserScript`. This would let users bring Tampermonkey/Greasemonkey scripts into iOS containers. --- ### Proposal * Allow importing `.user.js` files with metadata (`@match`, `@run-at`, `@grant`). * Inject scripts at `document-start` or `document-end` based on metadata. * Provide a minimal Greasemonkey API shim: * `GM_getValue` / `GM_setValue` * `GM_addStyle` * `GM_xmlhttpRequest` (via native bridge) --- ### Benefits * Enables automation and UI customization currently only possible on desktop. * Makes LiveContainer far more versatile without breaking iOS sandbox rules.
kerem closed this issue 2026-03-03 15:36:16 +03:00
Author
Owner

@hugeBlack commented on GitHub (Sep 28, 2025):

#265 8.1 You may write your own tweak to achieve that.

<!-- gh-comment-id:3342190097 --> @hugeBlack commented on GitHub (Sep 28, 2025): #265 8.1 You may write your own tweak to achieve that.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LiveContainer#782
No description provided.