Skip to content

Instantly share code, notes, and snippets.

@mcmoe
Last active October 23, 2018 13:11
Show Gist options
  • Save mcmoe/f5c29f4bc00dcad9d47dd89e7cad9d2a to your computer and use it in GitHub Desktop.
Save mcmoe/f5c29f4bc00dcad9d47dd89e7cad9d2a to your computer and use it in GitHub Desktop.
A quick way to download an SVG from a webpage
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);
/* Source: https://graphicdesign.stackexchange.com/questions/55123/how-do-i-save-an-svg-thats-on-a-website-to-my-computer */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment