From 59864266b15a373c71e652cb057bd1ffcea578c6 Mon Sep 17 00:00:00 2001 From: Movix <178902026+MysticSaba-max@users.noreply.github.com> Date: Wed, 24 Jun 2026 12:17:16 +0200 Subject: [PATCH] Ios userscript test --- userscript/movix.user.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/userscript/movix.user.js b/userscript/movix.user.js index a78254a..50defbd 100644 --- a/userscript/movix.user.js +++ b/userscript/movix.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Movix Proxy Extension (Tampermonkey) // @namespace https://movix.cash -// @version 1.4.3 +// @version 1.4.4 // @description Extension proxy pour Live TV Movix - Contourne CORS, injecte les headers et extrait les sources Nexus - version userscript Tampermonkey // @author Movix // @match http://localhost/* @@ -5217,8 +5217,14 @@ } pageWindow.addEventListener("message", async (event) => { + // Do NOT gate on event.source === pageWindow: on iOS userscript managers + // (Stay, Userscripts) this script runs in an isolated world whose window + // differs from the page's, so the identity check drops every request and the + // page times out. Same-origin + the "MOVIX_WEB" tag is enough. + const sameOrigin = + !event.origin || event.origin === pageWindow.location.origin; if ( - event.source !== pageWindow || + !sameOrigin || !event.data || event.data.source !== "MOVIX_WEB" || event.data.type !== "EXTENSION_REQUEST"