Libs_PayLoad_JVC

libs_Get_payload_JVC

لا ينبغي أن لا يتم تثبيت هذا السكريت مباشرة. هو مكتبة لسكبتات لتشمل مع التوجيه الفوقية // @require https://update.greasyfork.org/scripts/588212/1883409/Libs_PayLoad_JVC.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// GET PARSE Payload64GZIP
// ASYNCH

async function getPayloadFromHtml(doc) {
    const payload64 = [...doc.scripts].map(s => s.textContent.match(/jvc\.\w+Payload\s*=\s*["']([^"']+)["']/)).find(Boolean)?.[1];
    if (!payload64) return null;
    const bytes = Uint8Array.from(atob(payload64), c => c.charCodeAt(0));
    const decompressedStream = new Blob([bytes]).stream().pipeThrough(new DecompressionStream('gzip'));
    return await new Response(decompressedStream).json(); // GZIP + BASE 64
}


async function getPayloadFromRaw(rawData) {
    const payload64 = rawData.match(/jvc\.\w+Payload\s*=\s*["']([^"']+)["']/)?.[1];
    if (!payload64) return null;
    const bytes = Uint8Array.from(atob(payload64), c => c.charCodeAt(0));
    const decompressedStream = new Blob([bytes]).stream().pipeThrough(new DecompressionStream('gzip'));
    return await new Response(decompressedStream).json(); // GZIP + BASE 64
}


// SYNCH https://cdn.jsdelivr.net/npm/[email protected]/umd/index.js
// GET PARSE Payload From HTML (sync, requiert fflate via @require)

/*
function getPayloadFromHtmlSynch(doc) {
    const payload64 = [...doc.scripts].map(s => s.textContent.match(/jvc\.\w+Payload\s*=\s*["']([^"']+)["']/)).find(Boolean)?.[1];
    if (!payload64) return null;
    const bytes = Uint8Array.from(atob(payload64), c => c.charCodeAt(0));
    const decompressed = fflate.gunzipSync(bytes); // UnGZIP Synch
    const json = fflate.strFromU8(decompressed);
    return JSON.parse(json);  // GZIP + BASE 64
}
*/