Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Ensure the video you want to download is playing before you copy this script into the
- // developer tools console of the browser and hit the return key. It will extract the raw
- // video URL on websites that use no advanced techniques. If you get an URL that starts
- // with 'blob:' you are out of luck. When multiple videos are present, this code will
- // choose the one with the largest canvas.
- let videos = Array.from(document.querySelectorAll('video'));
- videos.sort((a,b) => -a.clientHeight*a.clientWidth+b.clientHeight*b.clientWidth);
- console.log(videos.filter(v => !v.paused)?.[0]?.src);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement