Skip to content

Instantly share code, notes, and snippets.

@gaulatti
Last active January 17, 2023 14:26
Show Gist options
  • Save gaulatti/9877127 to your computer and use it in GitHub Desktop.
Save gaulatti/9877127 to your computer and use it in GitHub Desktop.
Facebook Video Downloader (JS Console)
/*
* Facebook Video Downloader, Tested in Chrome / Safari
* rotvulpix - July11/2015@0918 CLST
*/
/*
* Usage: Go to video page (not modal window), and execute this code in console.
* If you want the HD Source, please see it on HD first.
*/
console.log(document.getElementsByClassName("videoStage")[0].getElementsByTagName("video")[0].src);
@gaulatti
Copy link
Author

gaulatti commented Apr 7, 2014

Also tested in Safari 7.0.3 in Mavericks... working fine! :D

@YSaxon
Copy link

YSaxon commented Jan 17, 2023

Still works if you delete the getElementsByClassName("videoStage")[0] part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment