Skip to content

Instantly share code, notes, and snippets.

@vicainelli
Last active January 7, 2021 10:36
Show Gist options
  • Save vicainelli/88405fbca2298f6b001d3bcc97cc2364 to your computer and use it in GitHub Desktop.
Save vicainelli/88405fbca2298f6b001d3bcc97cc2364 to your computer and use it in GitHub Desktop.
Instagram high resolution image
document.querySelector('img[srcset*="fbcdn"]')
    .srcset.split(',').pop()
    .match(/\bhttps?:\/\/\S+/gi)[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment