Created
June 16, 2017 18:38
-
-
Save ryanburnette/9893d04b58ba9a818951f335222298fe to your computer and use it in GitHub Desktop.
This file contains 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
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