A bookmarklet to extract photos from facebook album

Few days back I wanted to download all photos of a facebook album. Unfortunately that album was a personal public album can’t easily use facebook’s graph api to extract image links. In web when all else fails you still can do some magic with javascript. 🙂

I used the following bookmarklet to extract image links of thumbnails. It opens a separate window where it prints all the links, next use wget or any other downloading software to download images.

javascript:x=document.getElementsByClassName('uiMediaThumbImg');w=window.open('','','width=1024,height=768');for(i=0;i<x.length;i++){w.document.write(x.item(i).getAttribute('style').replace(');','').replace('background-image: url(', '').replace('p206x206/',''));w.document.write("<br/>");}w.focus();

wget command to download images

wget --no-check-certificate -i files.txt

Be aware: Quite a few assumptions are made!

Epiphany: Smart Bookmark (Address Bar as Search Bar)

For long days I was using FireFox, was very happy with this browser but only problem it is a very resource hungry browser. In some case it just crashes, probably because I add lot’s of add-ons. I was bit desperate to find a fast browser at least with search bars like in FireFox. As a result download near about 9 to 10 browsers. But got the solution in Epiphany.

Epiphany is very light weight browser, built on Gecko engine, never takes time to start. No customization supported by default. There is only one address bar, no default search bar. But the interesting point is this address bar could be used as the replacement of FireFox’s search bar. Continue reading