Last active
February 29, 2016 13:40
-
-
Save yuheiy/0d26352ffe3a4ce32a91 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.slice.call( | |
document.querySelectorAll('.fbPhotoStarGridElement') | |
).filter(function (el) { | |
return el.querySelector('.uiMediaThumb'); | |
}).map(function (el) { | |
return el.dataset.fbid; | |
}).forEach(function (id, i) { | |
setTimeout(function () { | |
var url = 'https://www.facebook.com/photo/download/?fbid=' + id; | |
location.href= url; | |
}, 1000 * i)} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment