Skip to content

Instantly share code, notes, and snippets.

@carstenhag
Last active May 18, 2021 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carstenhag/54ae50b57d38f149f9699a273fc0509f to your computer and use it in GitHub Desktop.
Save carstenhag/54ae50b57d38f149f9699a273fc0509f to your computer and use it in GitHub Desktop.
Export zeplin SVG assets. Open the styleguide site on the zeplin website, run the script in your console, and then make sure to click each asset every second.
function refreshData()
{
let index = 1 // On AND, the SVG download button is the second, so we need [1]. On iOS, the PDFs are also at [1]. See https://i.imgur.com/hoWIniV.png.
document.getElementsByClassName("downloadButton")[index].click()
setTimeout(refreshData, 1000);
}
refreshData(); // execute function
@carstenhag
Copy link
Author

best script ever!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment