Last active
October 23, 2018 13:11
-
-
Save mcmoe/f5c29f4bc00dcad9d47dd89e7cad9d2a to your computer and use it in GitHub Desktop.
A quick way to download an SVG from a webpage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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