Last active
October 9, 2018 01:52
-
-
Save kyoh86/5d9e7b9648e3aa0ce0e6fb6516131d6f to your computer and use it in GitHub Desktop.
ジョブカンの休日出勤申請をデフォルト振休付きにする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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