Skip to content

Instantly share code, notes, and snippets.

@yatatsu
yatatsu / 勤怠.js
Last active June 1, 2018 01:43 — forked from wozozo/勤怠.js
(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++;