Skip to content

Instantly share code, notes, and snippets.

@kyoh86
Last active October 9, 2018 01:52
Show Gist options
  • Save kyoh86/5d9e7b9648e3aa0ce0e6fb6516131d6f to your computer and use it in GitHub Desktop.
Save kyoh86/5d9e7b9648e3aa0ce0e6fb6516131d6f to your computer and use it in GitHub Desktop.
ジョブカンの休日出勤申請をデフォルト振休付きにする
//TARGET: https://ssl.jobcan.jp/employee/holidayworking/new
//DEV: https://gist.githack.com/kyoh86/5d9e7b9648e3aa0ce0e6fb6516131d6f/raw/jobcan-holiday-compensatory.js
//PRODUCTION: https://gistcdn.githack.com/kyoh86/5d9e7b9648e3aa0ce0e6fb6516131d6f/raw/jobcan-holiday-compensatory.js
(()=>{
const interval = 2000;
const process = ()=>{
let sel = document.getElementById('holiday_type');
if (!sel) {
return;
}
if (sel.dataset.setDefault === "set") {
return;
}
sel.selectedIndex = 1;
sel.dataset.setDefault = "set";
window.setTimeout(process, interval);
};
process();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment