{"size": 386, "ext": "js", "max_stars_repo_path": "app/src/main/assets/GetDocumentPage.js", "max_stars_repo_name": "patriciobcs/lapapa", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/src/main/assets/GetDocumentPage.js", "max_issues_repo_name": "patriciobcs/lapapa", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/src/main/assets/GetDocumentPage.js", "max_forks_repo_name": "patriciobcs/lapapa", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.5714285714, "max_line_length": 75, "alphanum_fraction": 0.670984456}
/* function(): waits x ms*/
function sleep(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}

/* function(): get URL from download document button */
async function getURL() {
    while (!document.getElementById("linkpdf").href.includes("tramites")) {
        await sleep(500);
    }
    console.log("DOCUMENT-URL", document.getElementById("linkpdf").href);
}

getURL();