BM ← drag to bookmark bar
Drop bookmark here to import
const vids = document.getElementsByTagName('video');
if (vids.length)
{
const v = vids[0];
if (v.src.startsWith('blob:'))
{
if (window.jwplayer)
{
const fn = window.jwplayer().getPlaylist()[0].file;
console.log(fn);
const a = document.createElement('a');
document.body.appendChild(a);
a.style = 'display:none';
a.href = fn;
a.setAttribute('download', fn.substring(fn.lastIndexOf('/') + 1));
a.click();
}
else window.alert('This streaming hoster is not supported since it uses encrypted HLS URLs, please select a different hoster.');
}
else
{
console.log(v.src);
location.href=v.src;
}
return;
}
const frm = document.querySelector('iframe');
if (frm) location.href = frm.src;
Bookmark name:
Icon: