Skip to content

Instantly share code, notes, and snippets.

@sepans
Created December 15, 2015 19:03
Show Gist options
  • Save sepans/fb4e70bea21734392830 to your computer and use it in GitHub Desktop.
Save sepans/fb4e70bea21734392830 to your computer and use it in GitHub Desktop.
one line to print flickr thumbnail url in a flickr search result
// copy and paste it to console to get all filenams. if didn't work update '.photo-list-photo-view' with correct div class
[].forEach.call( document.querySelectorAll('.photo-list-photo-view'), function(item) { var url = item.style.backgroundImage.replace('url("//',''); url = url.replace('")',''); console.log(url); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment