Created
January 2, 2014 23:21
-
-
Save tomrandle/8229157 to your computer and use it in GitHub Desktop.
jQuery to extract old style Flickr embed image. Run in console by right clicking 'inspect element' then changing to the console tab, pasting the code in a and pressing enter. You need the bit that's returned in the format <a href=""><img src=""></a>
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 imageSource = $('.main-photo').src; | |
var photoPage = window.location.href; | |
var htmlString = '<a href="' + photoPage + '"><img src="' + imageSource + '"></a>'; | |
console.log(htmlString); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment