Skip to content

Instantly share code, notes, and snippets.

@py7hon
Created August 6, 2018 12:55
Show Gist options
  • Save py7hon/d18cce464a77b7e7f47ac1f354638232 to your computer and use it in GitHub Desktop.
Save py7hon/d18cce464a77b7e7f47ac1f354638232 to your computer and use it in GitHub Desktop.
Usercloud DirectLink
if (document.querySelector('#btn_download')) {
document.querySelector('#btn_download').click();
} else {
document.querySelector('a.btn.btn-success.btn-icon-stacked').click();
setTimeout(window.close(), 10000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment