mirror of
https://github.com/movixcorp/MovixOpenSource.git
synced 2026-08-02 19:26:24 +00:00
Extension et Userscript Nouvelle Adresse
This commit is contained in:
parent
d32f23074b
commit
d25b3bcb65
6 changed files with 24 additions and 15 deletions
|
|
@ -5,7 +5,7 @@ const LIVETV_BASE_URL = "https://livetv882.me/frx/";
|
|||
const LIVETV_EMBED_ORIGIN = "https://livetv882.me";
|
||||
const LIVETV_EMBED_REFERER = LIVETV_BASE_URL;
|
||||
// Backend API URL for got-scraping based extraction
|
||||
const API_BASE_URL = "https://api.movix.cash";
|
||||
const API_BASE_URL = "https://api.movix.chat";
|
||||
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";
|
||||
|
||||
|
|
@ -116,6 +116,7 @@ async function setupRules() {
|
|||
"movix.cloud",
|
||||
"movix.tax",
|
||||
"movix.club",
|
||||
"movix.chat",
|
||||
"movix.golf",
|
||||
],
|
||||
resourceTypes: [
|
||||
|
|
@ -462,8 +463,8 @@ function handleDetectEmbeds(payload) {
|
|||
function buildBackendApiHeaders(accessKey, extraHeaders = {}) {
|
||||
const headers = {
|
||||
Accept: "application/json",
|
||||
Origin: "https://movix.cash",
|
||||
Referer: "https://movix.cash/",
|
||||
Origin: "https://movix.chat",
|
||||
Referer: "https://movix.chat/",
|
||||
...extraHeaders,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,9 @@
|
|||
"*://movix.club/*",
|
||||
"*://*.movix.club/*",
|
||||
"*://movix.golf/*",
|
||||
"*://*.movix.golf/*"
|
||||
"*://*.movix.golf/*",
|
||||
"*://movix.chat/*",
|
||||
"*://*.movix.chat/*"
|
||||
]
|
||||
},
|
||||
"web_accessible_resources": [
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 12px; text-align: center;">
|
||||
<a href="https://movix.golf/settings#extractions" target="_blank" style="color:#6366f1;text-decoration:none;font-size:12px;font-weight:600;">
|
||||
<a href="https://movix.chat/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.golf" target="_blank">
|
||||
<a href="https://movix.chat" 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"/>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const LIVETV_BASE_URL = "https://livetv882.me/frx/";
|
|||
const LIVETV_EMBED_ORIGIN = "https://livetv882.me";
|
||||
const LIVETV_EMBED_REFERER = LIVETV_BASE_URL;
|
||||
// Backend API URL for got-scraping based extraction
|
||||
const API_BASE_URL = "https://api.movix.cash";
|
||||
const API_BASE_URL = "https://api.movix.chat";
|
||||
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";
|
||||
|
||||
|
|
@ -122,6 +122,7 @@ async function setupRules() {
|
|||
"movix.cloud",
|
||||
"movix.tax",
|
||||
"movix.club",
|
||||
"movix.chat",
|
||||
"movix.golf",
|
||||
],
|
||||
resourceTypes: [
|
||||
|
|
@ -468,8 +469,8 @@ function handleDetectEmbeds(payload) {
|
|||
function buildBackendApiHeaders(accessKey, extraHeaders = {}) {
|
||||
const headers = {
|
||||
Accept: "application/json",
|
||||
Origin: "https://movix.cash",
|
||||
Referer: "https://movix.cash/",
|
||||
Origin: "https://movix.chat",
|
||||
Referer: "https://movix.chat/",
|
||||
...extraHeaders,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div style="margin-top: 12px; text-align: center;">
|
||||
<a href="https://movix.golf/settings#extractions" target="_blank" style="color:#6366f1;text-decoration:none;font-size:12px;font-weight:600;">
|
||||
<a href="https://movix.chat/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.golf" target="_blank">
|
||||
<a href="https://movix.chat" 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"/>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@
|
|||
// @match https://movix.tax/*
|
||||
// @match https://*.movix.tax/*
|
||||
// @match https://movix.golf/*
|
||||
// @match https://movix.chat/*
|
||||
// @match https://*.movix.chat/*
|
||||
// @match https://*.movix.golf/*
|
||||
// @grant GM_xmlhttpRequest
|
||||
// @grant GM_getValue
|
||||
|
|
@ -1031,7 +1033,7 @@
|
|||
*/
|
||||
|
||||
// ===== Configuration =====
|
||||
const PROXY_BASE = "https://proxiesembed.movix.cash";
|
||||
const PROXY_BASE = "https://proxiesembed.movix.chat";
|
||||
|
||||
// AES constants for SeekStreaming (embed4me)
|
||||
const SEEKSTREAMING_AES_KEY_HEX =
|
||||
|
|
@ -2388,7 +2390,7 @@
|
|||
const LIVETV_EMBED_ORIGIN = "https://livetv882.me";
|
||||
const LIVETV_EMBED_REFERER = LIVETV_BASE_URL;
|
||||
// Backend API URL for got-scraping based extraction
|
||||
const API_BASE_URL = "https://api.movix.cash";
|
||||
const API_BASE_URL = "https://api.movix.chat";
|
||||
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";
|
||||
|
||||
|
|
@ -2542,6 +2544,7 @@
|
|||
"movix.cloud",
|
||||
"movix.tax",
|
||||
"movix.golf",
|
||||
"movix.chat",
|
||||
],
|
||||
resourceTypes: [
|
||||
"xmlhttprequest",
|
||||
|
|
@ -2938,13 +2941,15 @@
|
|||
currentHostname === "movix.tax" ||
|
||||
currentHostname.endsWith(".movix.tax") ||
|
||||
currentHostname === "movix.golf" ||
|
||||
currentHostname === "movix.chat" ||
|
||||
currentHostname.endsWith(".movix.chat") ||
|
||||
currentHostname.endsWith(".movix.golf")
|
||||
) {
|
||||
return (currentOrigin || "https://movix.cash").replace(/\/$/, "");
|
||||
return (currentOrigin || "https://movix.chat").replace(/\/$/, "");
|
||||
}
|
||||
} catch {}
|
||||
|
||||
return "https://movix.cash";
|
||||
return "https://movix.chat";
|
||||
}
|
||||
|
||||
function buildBackendApiHeaders(accessKey, extraHeaders = {}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue