Currently, some Facebook Video download tools only work in the old interface. When using the new interface, you will not be able to download Facebook Videos. In this article, AnonyViet will guide you to download Videos on your personal page, Group or Fanpage on Facebook to your computer with 100% success.
| Join the channel Telegram belong to AnonyViet 👉 Link 👈 |
Instructions for downloading Facebook Videos with new interface 2021
To Download Facebook Video, you first need to install it Extension Custom JavaScript for Websites 2. This extension helps Run custom JavaScript on any website. Use this tool to insert JavaScript to download videos.
After installation, remember to click on the puzzle icon and click on the tick mark of the Custom JavaScript for Websites 2 icon.
Now you access the Facebook post with the Video you want to download to your computer. Press F12 to open DevTools, switch to Console Tab.
Now click on the Extension CJS icon, and paste the Facebook Video download javascript code below into the CJS frame. Then click the button Save in the upper corner
function downloadFacebookVideo(){
let m;
let str = document.documentElement.innerHTML;
//
let regex_sd = /"playable_url":"([^"]*)"/gm;
let regex_hd = /"playable_url_quality_hd":"([^"]*)"/gm;
let regex_audio = /"audio":\[(.*?)\]/sm; // Tach audio ra
let regex_audio_url = /{"url":"(.*?)\",/; // Lay chuoi Audio dau tien
//
let video_sd_url = null;
let video_hd_url = null;
let audio_json = null;
let audio_url = null;
// Lay Link SD
while ((m = regex_sd.exec(str)) !== null) {
if (m.index === regex_sd.lastIndex) {
regex_sd.lastIndex++;
}
video_sd_url = (typeof(m[1]) != "undefined") ? m[1] : null;
}
// Lay Link HD
while ((m = regex_hd.exec(str)) !== null) {
if (m.index === regex_hd.lastIndex) {
regex_hd.lastIndex++;
}
video_hd_url = (typeof(m[1]) != "undefined") ? m[1] : null;
}
/* Bat dau lay Audio */
// Audio Json
if ((m = regex_audio.exec(str)) !== null) {
audio_json = (typeof(m[1]) != "undefined") ? m[1] : null;
}
// Audio URL
if (audio_json != "null" && (m = regex_audio_url.exec(audio_json)) !== null ) {
audio_url = (typeof(m[1]) != "undefined") ? m[1] : null;
}
/* Ket thuc lay Audio */
// Tra loi neu khong co ket qua khi ca 3 ko co
if(video_hd_url == null && video_sd_url == null && audio_url == null){
console.log("Không tìm thấy link nào !");
return;
}
// Bo vao chuoi de xuat ra
let output="Ấn vào link bên dưới để tải về : \n";
// Link SD
if(video_sd_url != null){
let sd = video_sd_url.replaceAll("\\","");
output += "✔ Chất lượng SD : " + sd + "\n";
}
// Link HD
if(video_hd_url != null){
let hd = video_hd_url.replaceAll("\\","");
output += "✔ Chất lượng HD : " + hd + "\n";
}
// Link Audio
if(audio_url != null){
let audio = audio_url.replaceAll("\\","");
output += "✔ Link Audio: " + audio + "\n";
}
str = null;
return output;
}
Now turn off the Tab that is displaying that Facebook Video, then reopen that tab again.
Continue pressing F12 and Console tab, enter the command line downloadFacebookVideo() to call the Download Video function. Wait a moment and you will see the results with 3 options to download including SD quality, HD quality, or just download Audio.
In case you click on the link and cannot download it, open it Internet Download Manager up, choose Add URLcopy the entire download link and paste it, IDM will automatically capture the Download link for you.
Currently the Download Video script has been saved in CJS, so next time you want to download a Video, you just need to open the Facebook post with that Video, click F12 -> Console and type the command downloadFacebookVideo() You can download the Video now.
Currently this method applies to the new Facebook interface. If you use an Extension to switch Facebook back to the old interface, it will not work.
Refer to: httzip.com
Frequently asked questions
What software/extension do I need to install to download Facebook videos?
You need to install Extension Custom JavaScript for Websites 2. This extension allows running custom JavaScript code to download videos.
If I don’t see the option to download videos after running the command downloadFacebookVideo() so what?
Verify that you have pasted the correct JavaScript code into Custom JavaScript for Websites 2 and run the command downloadFacebookVideo() in Console. If it still doesn’t work, try using Internet Download Manager (IDM) to download the video by pasting the link into IDM.
Does this method work with the old Facebook interface?
No, this method only works with Facebook’s new interface. If you are using the old interface, it will not work.














