mirror of
https://github.com/movixcorp/MovixOpenSource.git
synced 2026-07-30 16:29:11 +00:00
Nouvelle domaine movix extension + userscript
This commit is contained in:
parent
b413f00b04
commit
776a3607b7
9 changed files with 32 additions and 27 deletions
|
|
@ -7,7 +7,7 @@ const LIVETV_EMBED_REFERER = LIVETV_BASE_URL;
|
|||
// Dev override: when the requesting page is localhost (Vite dev on :3000),
|
||||
// talk to the local backend (:25565) instead of prod. Set per-message from
|
||||
// the sender origin (see maybeUseLocalApi in the onMessage listener below).
|
||||
const PROD_API_BASE_URL = "https://api.movix.date";
|
||||
const PROD_API_BASE_URL = "https://api.movix.show";
|
||||
const LOCAL_API_BASE_URL = "http://localhost:25565";
|
||||
let API_BASE_URL = PROD_API_BASE_URL;
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ const DEFAULT_EXTRACTION_PREFS = {
|
|||
sibnet: true, uqload: true, doodstream: true, seekstreaming: true,
|
||||
},
|
||||
livetv: {
|
||||
linkzy: true, wiflix: true, sosplay: true, livetv: true, matches: true,
|
||||
wiflix: true, sosplay: true, livetv: true, matches: true,
|
||||
},
|
||||
};
|
||||
let extractionPrefs = DEFAULT_EXTRACTION_PREFS;
|
||||
|
|
@ -136,6 +136,7 @@ async function setupRules() {
|
|||
"movix.chat",
|
||||
"movix.golf",
|
||||
"movix.date",
|
||||
"movix.show",
|
||||
],
|
||||
resourceTypes: [
|
||||
"xmlhttprequest",
|
||||
|
|
@ -171,7 +172,6 @@ chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
|||
*/
|
||||
function getLiveTvSourceKey(catalogId) {
|
||||
if (!catalogId || typeof catalogId !== 'string') return null;
|
||||
if (catalogId.startsWith('linkzy_')) return 'linkzy';
|
||||
if (catalogId.startsWith('wiflix_')) return 'wiflix';
|
||||
if (catalogId.startsWith('sosplay_')) return 'sosplay';
|
||||
if (catalogId.startsWith('livetv_')) return 'livetv';
|
||||
|
|
@ -497,8 +497,8 @@ function handleDetectEmbeds(payload) {
|
|||
function buildBackendApiHeaders(accessKey, extraHeaders = {}) {
|
||||
const headers = {
|
||||
Accept: "application/json",
|
||||
Origin: "https://movix.date",
|
||||
Referer: "https://movix.date/",
|
||||
Origin: "https://movix.show",
|
||||
Referer: "https://movix.show/",
|
||||
...extraHeaders,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
// ===== Configuration =====
|
||||
const PROXY_BASE = 'https://proxiesembed.movix.date';
|
||||
const PROXY_BASE = 'https://proxiesembed.movix.show';
|
||||
|
||||
// AES constants for SeekStreaming (embed4me)
|
||||
const SEEKSTREAMING_AES_KEY_HEX = '6b69656d7469656e6d7561393131636131323334353637383930';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Movix Proxy Extension",
|
||||
"version": "1.3.8",
|
||||
"version": "1.3.9",
|
||||
"description": "Extension proxy pour Live TV Movix - Contourne CORS, injecte les headers et extrait les sources Nexus",
|
||||
"icons": {
|
||||
"16": "movix.png",
|
||||
|
|
@ -49,7 +49,9 @@
|
|||
"*://movix.chat/*",
|
||||
"*://*.movix.chat/*",
|
||||
"*://movix.date/*",
|
||||
"*://*.movix.date/*"
|
||||
"*://*.movix.date/*",
|
||||
"*://movix.show/*",
|
||||
"*://*.movix.show/*"
|
||||
]
|
||||
},
|
||||
"web_accessible_resources": [
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 12px; text-align: center;">
|
||||
<a href="https://movix.date/settings#extractions" target="_blank" style="color:#6366f1;text-decoration:none;font-size:12px;font-weight:600;">
|
||||
<a href="https://movix.show/settings#extractions" target="_blank" style="color:#6366f1;text-decoration:none;font-size:12px;font-weight:600;">
|
||||
Configurer →
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -456,7 +456,7 @@
|
|||
|
||||
<!-- Footer -->
|
||||
<div class="footer fade-in fade-in-delay-6">
|
||||
<a href="https://movix.date" target="_blank">
|
||||
<a href="https://movix.show" target="_blank">
|
||||
Ouvrir Movix
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ const LIVETV_EMBED_REFERER = LIVETV_BASE_URL;
|
|||
// Dev override: when the requesting page is localhost (Vite dev on :3000),
|
||||
// talk to the local backend (:25565) instead of prod. Set per-message from
|
||||
// the sender origin (see maybeUseLocalApi in the onMessage listener below).
|
||||
const PROD_API_BASE_URL = "https://api.movix.date";
|
||||
const PROD_API_BASE_URL = "https://api.movix.show";
|
||||
const LOCAL_API_BASE_URL = "http://localhost:25565";
|
||||
let API_BASE_URL = PROD_API_BASE_URL;
|
||||
|
||||
|
|
@ -49,7 +49,7 @@ const DEFAULT_EXTRACTION_PREFS = {
|
|||
sibnet: true, uqload: true, doodstream: true, seekstreaming: true,
|
||||
},
|
||||
livetv: {
|
||||
linkzy: true, wiflix: true, sosplay: true, livetv: true, matches: true,
|
||||
wiflix: true, sosplay: true, livetv: true, matches: true,
|
||||
},
|
||||
};
|
||||
let extractionPrefs = DEFAULT_EXTRACTION_PREFS;
|
||||
|
|
@ -142,6 +142,7 @@ async function setupRules() {
|
|||
"movix.chat",
|
||||
"movix.golf",
|
||||
"movix.date",
|
||||
"movix.show",
|
||||
],
|
||||
resourceTypes: [
|
||||
"xmlhttprequest",
|
||||
|
|
@ -168,7 +169,6 @@ async function setupRules() {
|
|||
*/
|
||||
function getLiveTvSourceKey(catalogId) {
|
||||
if (!catalogId || typeof catalogId !== 'string') return null;
|
||||
if (catalogId.startsWith('linkzy_')) return 'linkzy';
|
||||
if (catalogId.startsWith('wiflix_')) return 'wiflix';
|
||||
if (catalogId.startsWith('sosplay_')) return 'sosplay';
|
||||
if (catalogId.startsWith('livetv_')) return 'livetv';
|
||||
|
|
@ -502,8 +502,8 @@ function handleDetectEmbeds(payload) {
|
|||
function buildBackendApiHeaders(accessKey, extraHeaders = {}) {
|
||||
const headers = {
|
||||
Accept: "application/json",
|
||||
Origin: "https://movix.date",
|
||||
Referer: "https://movix.date/",
|
||||
Origin: "https://movix.show",
|
||||
Referer: "https://movix.show/",
|
||||
...extraHeaders,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
// ===== Configuration =====
|
||||
const PROXY_BASE = 'https://proxiesembed.movix.date';
|
||||
const PROXY_BASE = 'https://proxiesembed.movix.show';
|
||||
|
||||
// AES constants for SeekStreaming (embed4me)
|
||||
const SEEKSTREAMING_AES_KEY_HEX = '6b69656d7469656e6d7561393131636131323334353637383930';
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 3,
|
||||
"name": "Movix Proxy Extension",
|
||||
"version": "1.5.5",
|
||||
"version": "1.5.6",
|
||||
"description": "Extension proxy pour Live TV Movix - Contourne CORS, injecte les headers et extrait les sources Nexus",
|
||||
"browser_specific_settings": {
|
||||
"gecko": {
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 12px; text-align: center;">
|
||||
<a href="https://movix.date/settings#extractions" target="_blank" style="color:#6366f1;text-decoration:none;font-size:12px;font-weight:600;">
|
||||
<a href="https://movix.show/settings#extractions" target="_blank" style="color:#6366f1;text-decoration:none;font-size:12px;font-weight:600;">
|
||||
Configurer →
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -456,7 +456,7 @@
|
|||
|
||||
<!-- Footer -->
|
||||
<div class="footer fade-in fade-in-delay-6">
|
||||
<a href="https://movix.date" target="_blank">
|
||||
<a href="https://movix.show" target="_blank">
|
||||
Ouvrir Movix
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// ==UserScript==
|
||||
// @name Movix Proxy Extension (Tampermonkey)
|
||||
// @namespace https://movix.cash
|
||||
// @version 1.4.7
|
||||
// @version 1.4.8
|
||||
// @description Extension proxy pour Live TV Movix - Contourne CORS, injecte les headers et extrait les sources Nexus - version userscript Tampermonkey
|
||||
// @author Movix
|
||||
// @updateURL https://github.com/movixcorp/MovixOpenSource/raw/refs/heads/main/userscript/movix.user.js
|
||||
|
|
@ -24,6 +24,8 @@
|
|||
// @match https://*.movix.golf/*
|
||||
// @match https://movix.date/*
|
||||
// @match https://*.movix.date/*
|
||||
// @match https://movix.show/*
|
||||
// @match https://*.movix.show/*
|
||||
// @grant GM_xmlhttpRequest
|
||||
// @grant GM_getValue
|
||||
// @grant GM_setValue
|
||||
|
|
@ -41,7 +43,7 @@
|
|||
|
||||
const USERSCRIPT_MANIFEST = {
|
||||
name: "Movix Proxy Extension",
|
||||
version: "1.4.7",
|
||||
version: "1.4.8",
|
||||
description:
|
||||
"Extension proxy pour Live TV Movix - Contourne CORS, injecte les headers et extrait les sources Nexus",
|
||||
};
|
||||
|
|
@ -1039,7 +1041,7 @@
|
|||
*/
|
||||
|
||||
// ===== Configuration =====
|
||||
const PROXY_BASE = "https://proxiesembed.movix.date";
|
||||
const PROXY_BASE = "https://proxiesembed.movix.show";
|
||||
|
||||
// AES constants for SeekStreaming (embed4me)
|
||||
const SEEKSTREAMING_AES_KEY_HEX =
|
||||
|
|
@ -2408,7 +2410,7 @@
|
|||
typeof location !== "undefined" &&
|
||||
(location.hostname === "localhost" || location.hostname === "127.0.0.1")
|
||||
? "http://localhost:25565"
|
||||
: "https://api.movix.date";
|
||||
: "https://api.movix.show";
|
||||
const STREAM_PROXY_USER_AGENT =
|
||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36";
|
||||
|
||||
|
|
@ -2433,7 +2435,6 @@
|
|||
seekstreaming: true,
|
||||
},
|
||||
livetv: {
|
||||
linkzy: true,
|
||||
wiflix: true,
|
||||
sosplay: true,
|
||||
livetv: true,
|
||||
|
|
@ -2564,6 +2565,7 @@
|
|||
"movix.golf",
|
||||
"movix.chat",
|
||||
"movix.date",
|
||||
"movix.show",
|
||||
],
|
||||
resourceTypes: [
|
||||
"xmlhttprequest",
|
||||
|
|
@ -2590,7 +2592,6 @@
|
|||
*/
|
||||
function getLiveTvSourceKey(catalogId) {
|
||||
if (!catalogId || typeof catalogId !== "string") return null;
|
||||
if (catalogId.startsWith("linkzy_")) return "linkzy";
|
||||
if (catalogId.startsWith("wiflix_")) return "wiflix";
|
||||
if (catalogId.startsWith("sosplay_")) return "sosplay";
|
||||
if (catalogId.startsWith("livetv_")) return "livetv";
|
||||
|
|
@ -2977,13 +2978,15 @@
|
|||
currentHostname.endsWith(".movix.chat") ||
|
||||
currentHostname === "movix.date" ||
|
||||
currentHostname.endsWith(".movix.date") ||
|
||||
currentHostname === "movix.show" ||
|
||||
currentHostname.endsWith(".movix.show") ||
|
||||
currentHostname.endsWith(".movix.golf")
|
||||
) {
|
||||
return (currentOrigin || "https://movix.date").replace(/\/$/, "");
|
||||
return (currentOrigin || "https://movix.show").replace(/\/$/, "");
|
||||
}
|
||||
} catch {}
|
||||
|
||||
return "https://movix.date";
|
||||
return "https://movix.show";
|
||||
}
|
||||
|
||||
function buildBackendApiHeaders(accessKey, extraHeaders = {}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue