Last active
May 18, 2021 11:18
-
-
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.
This file contains hidden or 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
best script ever!