Skip to content

Instantly share code, notes, and snippets.

@kemalelmizan
Last active January 13, 2021 05:59
Show Gist options
  • Save kemalelmizan/7e61afbdc76e08a69055c06a48a171c4 to your computer and use it in GitHub Desktop.
Save kemalelmizan/7e61afbdc76e08a69055c06a48a171c4 to your computer and use it in GitHub Desktop.
Extract all URLs
urls = []
$$('*').forEach(e => { urls.push(e?.src, e?.href, e?.url) })
console.log(...new Set(urls))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment