Skip to content

Instantly share code, notes, and snippets.

@nbriz
Last active February 27, 2018 15:46
Show Gist options
  • Save nbriz/46db7bf9a439bc874ed1 to your computer and use it in GitHub Desktop.
Save nbriz/46db7bf9a439bc874ed1 to your computer and use it in GitHub Desktop.
onlyLargePhotos.js
var imgHTML = [];
var imgs = document.querySelectorAll(".fbPhotoStarGridElement");
imgs.forEach((el, i)=>{
imgHTML.push('<img src="'+el.getAttribute('data-starred-src')+'">');
});
document.body.innerHTML = imgHTML;
@nbriz
Copy link
Author

nbriz commented Mar 31, 2015

some observations from Ted Davis ( who helped re-write the code above ):

i ran into one problem.. 
the server address you patch onto jpg urls unfortunately isn’t so static. 
when i did it, i had 93 images fail to load.. 
looked closer and saw the servers change a bit from your:

    fbcdn-sphotos-f-a.. » to things like: fbcdn-sphotos-a-a... etc.

not sure the rules.. if it’s just date of upload/hosting or euro/us thing?

@alezotta
Copy link

alezotta commented Aug 8, 2016

Is there any updated version of the script? I only get a blank page when I run it. I'd like to download the photos I'm tagged in before untagging myself with the all inclusive script found at http://nickbriz.com/facebook/unfriend.html

@SAI16497307
Copy link

SAI16497307 commented Jan 7, 2018

@nbriz I am getting the same error as Allison and Sean. Is there a fix for this?
And sometimes I get a blank page, anyone could help?

@nbriz
Copy link
Author

nbriz commented Feb 27, 2018

updated w/new code by @ffd8 (Ted Davis) Feb 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment