(() => { let urls = new Set(); let albumLinks = new Set(); try { document.querySelectorAll('video').forEach(v => { if (v.src && !v.src.startsWith('blob:')) urls.add(v.src); v.querySelectorAll('source').forEach(s => { if (s.src && !s.src.startsWith('blob:')) urls.add(s.src); }); }); document.querySelectorAll('a').forEach(a => { if (a.href && typeof a.href === 'string') { if (a.href.includes('.mp4')) { urls.add(a.href); } else if (a.href.includes('facebook.com/reel/') || a.href.match(/facebook\.com\/.*\/videos\//)) { urls.add(a.href.split('?')[0]); } else if (a.href.includes('facebook.com/watch')) { urls.add(a.href); } if (a.href.match(/erome\.com\/a\/[a-zA-Z0-9]+/)) { albumLinks.add(a.href); } } }); } catch(e) { return { error: e.message }; } return { videos: Array.from(urls), albums: Array.from(albumLinks) }; })();