Tune.pk is an online video streaming site like YouTube where you can watch videos online for free in HD quality. And, Facebook you already know everything about it better than me. Across the web, you can find thousand of the websites where from you can download any videos of any sites like Facebook and tune.pk.
I have also posted an old trick to download videos from Facebook. If you are a JavaScript developer you can realize that JavaScript is too much powerful by which you can also hack the file of a website.
Some days ago, I have to download Photoshop tutorial which I have found on tune.pk and another one on Facebook. I have always required to download tutorial from these sites.
So, being a JavaScript Developer why can I not create a simple JavaScript program that can fetch the direct link of videos easily and reduce my hard work to find a website and then paste the link their and then download the videos.
How To Download Videos From Tune.pk without any software and using JavaScript hack?
1. Find the video on tune.pk of which you want to get the download link. click here2. Now, press [CTRL + J] simultaneously on your chrome browser.
3. Now copy and paste the below code on the browser console and hit enter.
var metaArray = document.getElementsByName('twitter:player:stream');4. And then, direct link will appear on the browser screen. Copy and paste the link on the browser address bar and hit enter and then simply right click on the songs and then select save.
for (var i=0; i<metaArray.length; i++) {
document.write('<p style="font-size:20px">Your download link is here, now copy and paste the below link on your browser address bar and hit enter</p> ', metaArray[i].content);
}
How To Download Facebook Videos using JavaScript or browser inspect element?
1. The procedure is same as stated above. Find a video[click here for demo]2. Just copy and paste the below code to your chrome console area and hit enter.
var metaArray = document.getElementsByTagName('video');3. That's it.
for (var i=0; i<metaArray.length; i++) {
document.write(metaArray[i].src);
}
Note: If you want to create an another JavaScript code to download the video, songs, image or anything with JavaScript and where download link is disabled, you can comment below. I love to create a new one for you.
Comments
Post a Comment