-
-
Save xadhix-zz/8802624 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.f = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0].hd_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; |
@ JibranAhmed you need to use "Web Console" (CTRL+SHIFT+k), not "Browser Console"
browser | combo |
---|---|
Firefox | CTRL+SHIFT+k |
Chrome | CTRL+SHIFT+j |
Safari | CTRL+ALT+i |
Opera | CTRL+SHIFT+i |
Internet Explorer | F12 ...then click "Console" |
When I go to get the video via facebook/lookback
- I get 6 pictures and a thank you.
- When I attempted to use the script I get "TypeError: Cannot call method 'getAttribute' of null"
- I've tried it in firefox and google chrome.
Any other solutions
@NitaAnn if you only see pictures, there is nothing to download so the script fails... try with chbrandt85 solution
I viewed my video on facebook app of my iphone 5 and afterwards i accidentally deleted it. i tried all solutions mentioned in this thread, still hoping to find some solution :/
@ironbishop . please elaborate
@ironbishop. I was hoping to retrieve the video that produced yesterday that I didn't share because I wanted to delete one picture. Big mistake. I don't think it will be in my cache files since I have closed my browser several times since yesterday. I guess I'm out of luck and solutions. Thanks for your assistance.
Ok, my dumbass tried all of these solutions on the computer but then I remembered I had deleted my video on my iPhone 5S using the Facebook app. Is there hope to still get it back? UGH.
Brilliant.!! Thank u very much.. :)
Awesome!
a mi el codigo me da error, por favor necesito ayuda, me dijeron que si borraba la cache podria volver a compartir el video, lo hice y tampoco me deja, ayuda por favor, lo siento pero no se ingles, alguien me puede ayudar?
If you have deleted the video, your only option is to ask for assistance to Facebook helpdesk.
Si ha eliminado el vídeo, su única opción es pedir ayuda a Facebook helpdesk.
ok thx
Great news - you can now edit the video and make a new one - try it! And it seems those people that were missing the video can now make one, too. Thank you for this script, too!
I added support for the ability to download videos that are not available in high-definition, in my fork.
This may Help you: Download Facebook video Online Download Facebook videos in HD.
Trying to download an arbitrary video, and getting the error
Uncaught TypeError: Cannot read property 'hd_src' of undefined
...I found that this slight alteration works, adding .progressive
after video_data
, when on a dedicated video page:
var xLBD = {};
xLBD.c = function (){
xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7);
xLBD.f = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data.progressive[0].hd_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;
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
Sorry but when i paste in console this error occurs
TypeError: Cannot call method 'getAttribute' of null
Please Help