Skip to content

Instantly share code, notes, and snippets.

@wozozo
Created October 3, 2017 03:10
Show Gist options
  • Save wozozo/92708d1ee1b40504568c4f9daa154749 to your computer and use it in GitHub Desktop.
Save wozozo/92708d1ee1b40504568c4f9daa154749 to your computer and use it in GitHub Desktop.
(function () {
var i = 0;
document.querySelectorAll('tr.days .dval.vst').forEach(function(e) {
setTimeout(function () {
e.click();
document.querySelector('#startTime').value = '10:30';
document.querySelector('#endTime').value = '20:00';
document.querySelector('#dlgInpTimeOk').click();
}, 4000 * i);
i++;
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment