// Skool m3u8 Extractor + yt-dlp command generator (2026 version)
(async () => {
const videos = document.querySelectorAll('video, source');
let m3u8 = null;
try {
const res = await fetch(location.href);
const text = await res.text();
const match = text.match(/https:\/\/[^"]+\.m3u8[^"]*/);
if (match) m3u8 = match[0];
} catch(e) {}
if (!m3u8) {
console.log("افتح Network tab → شغل الفيديو → ابحث عن .m3u8 → انسخ الرابط كامل");
alert("ما لقيتش الرابط تلقائي... جرب Network tab يدوي");
return;
}
const cmd = `yt-dlp "${m3u8}" --referer "https://www.skool.com" -o "video-skool.mp4"`;
console.log("%cانسخ الأمر ده وشغله في الـ Terminal:", "color:lime; font-size:16px");
console.log(cmd);
prompt("الأمر جاهز (انسخه):", cmd);
})();
ملاحظة مهمة:
اسحب الرابط ده لشريط المفضلة (Bookmarks bar):
Skool Helper (اسحب هنا)لو عايز طريقة أسهل (extension جاهزة)، ابحث في Chrome عن "Skool Video Downloader by Devin" أو زور: serp.ly/skool-video-downloader