Skip to content

Instantly share code, notes, and snippets.

@StephenPunwasi
Created April 1, 2016 17:44
Show Gist options
  • Save StephenPunwasi/39e6009da55bedc68d93ba40882b4a38 to your computer and use it in GitHub Desktop.
Save StephenPunwasi/39e6009da55bedc68d93ba40882b4a38 to your computer and use it in GitHub Desktop.
jQuery('img').each(function(){imgsrc = this.src); console.log(imgsrc);})
@StephenPunwasi
Copy link
Author

Outputs all images to console. For sites that don't have jQuery, you'll need to add it to the head. e.g.

var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";

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