Skip to content

Instantly share code, notes, and snippets.

@estevanmaito
Created December 17, 2021 21:06
Show Gist options
  • Save estevanmaito/5d0ab99fdff0c573001005a80e9b6843 to your computer and use it in GitHub Desktop.
Save estevanmaito/5d0ab99fdff0c573001005a80e9b6843 to your computer and use it in GitHub Desktop.
let urls = $('a').toArray().map(a => $(a).attr('href'))
let images = $('img').toArray().map(img => $(img).attr('src'))
let css = $('link[rel="stylesheet"]').toArray().map(css => $(css).attr('href'))
let js = $('script').toArray().map(js => $(js).attr('src'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment