Skip to content

Instantly share code, notes, and snippets.

@davorb
Forked from xadhix-zz/Facebook Lookback Downloader
Last active September 1, 2016 08:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save davorb/df2c02564a8c2ecec513 to your computer and use it in GitHub Desktop.
Save davorb/df2c02564a8c2ecec513 to your computer and use it in GitHub Desktop.
var xLBD = {};
xLBD.c = function () {
xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7);
xLBD.m = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0];
xLBD.f = xLBD.m.hd_src ? xLBD.m.hd_src : xLBD.m.sd_src;
xLBD.a = "<div style='position:absolute;top:100px;height:300px;left:15%;background:#fff;border:10px solid #000;font-size:5em;padding:100px;'>Click <a download='lookback.mp4' href='"+xLBD.f+"'>here<\/a> to download your lookBack video.</div>";
document.body.innerHTML += xLBD.a;
};
if(document.readyState == "complete")
xLBD.c();
else window.onload = xLBD.c;
@davorb
Copy link
Author

davorb commented Aug 30, 2014

You can download non-HD videos with this version.

@lucky1412
Copy link

how to get Hd video url from video link of facebook
and this is video link of video "https://www.facebook.com/buzzfeedtopknot/videos/1180316385374410/"
please help me out

thanks
Santosh kumar

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