Skip to content

Instantly share code, notes, and snippets.

@mikz
Last active July 30, 2019 13:07
Show Gist options
  • Save mikz/559b08992284e3a15b811b9189db6501 to your computer and use it in GitHub Desktop.
Save mikz/559b08992284e3a15b811b9189db6501 to your computer and use it in GitHub Desktop.
javascript:for(let%20a%20of%20document.querySelectorAll("tr:not(.days_off):not(.leave_date):not(.full_day_holiday)%20input[name^=\"timesheet[timesheetRow]\"][name$=\"[inTime]\"]"))a.value="09:00";for(let%20a%20of%20document.querySelectorAll("tr:not(.days_off):not(.leave_date):not(.full_day_holiday)%20input[name^=\"timesheet[timesheetRow]\"][name$=\"[breakDuration]\"]"))a.value="01:00";for(let%20a%20of%20document.querySelectorAll("tr:not(.days_off):not(.leave_date):not(.full_day_holiday)%20input[name^=\"timesheet[timesheetRow]\"][name$=\"[outTime]\"]"))a.value="18:00",a.dispatchEvent(new%20FocusEvent("blur"));
for (let element of document.querySelectorAll('tr:not(.days_off):not(.leave_date):not(.full_day_holiday) input[name^="timesheet[timesheetRow]"][name$="[inTime]"]')) { element.value = '09:00' };
for (let element of document.querySelectorAll('tr:not(.days_off):not(.leave_date):not(.full_day_holiday) input[name^="timesheet[timesheetRow]"][name$="[breakDuration]"]')) { element.value = '01:00' };
for (let element of document.querySelectorAll('tr:not(.days_off):not(.leave_date):not(.full_day_holiday) input[name^="timesheet[timesheetRow]"][name$="[outTime]"]')) { element.value = '18:00'; element.dispatchEvent(new FocusEvent('blur')) };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment