Skip to content

Instantly share code, notes, and snippets.

@ryanburnette
Created June 16, 2017 18:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanburnette/9893d04b58ba9a818951f335222298fe to your computer and use it in GitHub Desktop.
Save ryanburnette/9893d04b58ba9a818951f335222298fe to your computer and use it in GitHub Desktop.
var photos = document.getElementsByClassName('photo-list-photo-view');
var photos_length = photos.length;
for ( var i = 0; i < photos_length; i++ ) {
var photo = photos[i];
var style_bg_image = photo.style.backgroundImage;
var url = 'https:' + style_bg_image.replace('url(','').replace(')','');
url = url.replace('"', '');
url = url.replace('"', '');
console.log(url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment