Currently, some Facebook Video Downloading 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 with 100% success.
Join the channel Telegram of the AnonyViet 👉 Link 👈 |
Instructions to download Facebook Video with new interface 2021
To Download Facebook Videos, you need to install it first Extension Custom JavaScript for Websites 2. This extension helps to Run custom JavaScript on any website. Use this tool to insert the JavaScript that loads the Video.
After installing, 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 article that has posted the Video that you want to download to your computer. Press F12 to open DevTools, switch to Console Tab.
Now click on the CJS Extension icon, and paste the below Facebook Video download javascript code 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 you turn off the Tab that is showing that Facebook Video, then reopen that tab once again.
Keep pressing F12 and the Console tab, enter the command line downloadFacebookVideo()
to call the Download Video function. Wait a moment and you will see 3 options to download including SD quality, HD quality, or just download Audio.
In case you click on the link and it doesn’t download, open Internet Download Manager up, choose Add URLcopy the entire link to download and paste it, IDM will automatically catch the Download link for you.
Currently, the Download Video script is already stored in CJS, so the next time you want to download any Video, you just need to open the Facebook article with that Video, click F12 -> Console and type the command downloadFacebookVideo()
You can download the video already.
Currently this method applies to Facebook’s new interface, if you use the Extension to switch Facebook back to the old interface, it will not work.
Reference at: httzip.com