Skip to content

Instantly share code, notes, and snippets.

@yatatsu
Forked from wozozo/勤怠.js
Last active June 1, 2018 01:43
Show Gist options
  • Save yatatsu/449dbc591e36d2999a829de747200b5e to your computer and use it in GitHub Desktop.
Save yatatsu/449dbc591e36d2999a829de747200b5e 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:' + (Math.floor(Math.random() * Math.floor(10)) + 30));
document.querySelector('#endTime').value = ('20:' + Math.floor(Math.random() * Math.floor(10)));
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