Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save martijnimhoff/7737e61e474b63627ea73e8c5abaa3da to your computer and use it in GitHub Desktop.
Save martijnimhoff/7737e61e474b63627ea73e8c5abaa3da to your computer and use it in GitHub Desktop.
Extract SVGs from webpages
var e = document.createElement('script'); e.setAttribute('src', 'https://nytimes.github.io/svg-crowbar/svg-crowbar.js'); e.setAttribute('class', 'svg-crowbar'); document.body.appendChild(e);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment