Skip to content

Instantly share code, notes, and snippets.

@vsimko

vsimko/download-tnp-svg.js

Last active Apr 23, 2018
Embed
What would you like to do?
// run this code in dev console when you selected your icon
var x = document.createElement('img')
x.src = document.querySelector('.iconPreview').style.backgroundImage.replace(/url\("/,'').replace(/"\)$/, '')
document.body.replaceWith(x)
// or use this as a bookmark in your chrome
// Name: TNP Download
// URL: javascript:!(function() { var x = document.createElement('img'); x.src = document.querySelector('.iconPreview').style.backgroundImage.replace(/url\("/,'').replace(/"\)$/, ''); document.body.replaceWith(x) })()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.