Use this JavaScript script to extract direct download links from supported OTT platforms. Paste this code into your browser's console to start downloading.
OTT Downloader Script
/**
* StreamSnatch OTT Downloader Script
* Version: 1.0
* Supported Platforms: Hotstar, ZEE5, JioCinema, MX Player, Prime Video
*/
const ottDownloader = (() => {
const SUPPORTED_DOMAINS = [
'hotstar.com',
'zee5.com',
'jiocinema.com',
'mxplayer.in',
'primevideo.com'
];
const isSupported = () => {
return SUPPORTED_DOMAINS.some(domain =>
window.location.hostname.includes(domain)
);
};
const extractMediaInfo = () => {
const currentUrl = window.location.href;
const title = document.title.replace(/ - Watch Online$/, '');
if (window.location.hostname.includes('hotstar.com')) {
return {
url: currentUrl,
title: title,
platform: 'Hotstar'
};
}
if (window.location.hostname.includes('zee5.com')) {
return {
url: currentUrl,
title: title,
platform: 'ZEE5'
};
}
if (window.location.hostname.includes('jiocinema.com')) {
return {
url: currentUrl,
title: title,
platform: 'JioCinema'
};
}
if (window.location.hostname.includes('mxplayer.in')) {
return {
url: currentUrl,
title: title,
platform: 'MX Player'
};
}
if (window.location.hostname.includes('primevideo.com')) {
return {
url: currentUrl,
title: title,
platform: 'Prime Video'
};
}
return null;
};
const generateDownloadLink = async (mediaInfo) => {
// In a real implementation, this would call your backend API
// For demo purposes, we'll just format a Telegram bot link
const botUsername = 'StreamSnatchBot';
const message = `Download ${mediaInfo.title} from ${mediaInfo.platform}: ${mediaInfo.url}`;
return `https://t.me/${botUsername}?start=${encodeURIComponent(message)}`;
};
const init = async () => {
if (!isSupported()) {
alert('This platform is not currently supported.');
return;
}
const mediaInfo = extractMediaInfo();
if (!mediaInfo) {
alert('Could not extract media information from this page.');
return;
}
const downloadLink = await generateDownloadLink(mediaInfo);
window.open(downloadLink, '_blank');
};
return { init };
})();
// Run the downloader
ottDownloader.init();
How to Use This Script
Navigate to the OTT platform's video page you want to download
Open your browser's developer tools (F12 or Ctrl+Shift+I)
Go to the Console tab
Copy and paste the script above into the console
Press Enter to execute the script
The script will open Telegram with the download link ready
Note: This script requires you to have the StreamSnatch Bot already installed in Telegram. Some platforms may require authentication.