Last active
October 24, 2025 04:50
-
-
Save mu-hun/e7deb86c0600dfc4539ee075ff27e229 to your computer and use it in GitHub Desktop.
병무청 병역일터 검색
This file contains hidden or 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
| // ==UserScript== | |
| // @name 병무청 병역일터 검색 | |
| // @version 1 | |
| // @grant none | |
| // @match https://work.mma.go.kr/caisBYIS/search/byjjecgeomsaek.do | |
| // @match https://work.mma.go.kr/caisBYIS/search/cygonggogeomsaek.do | |
| // @run-at document-idle | |
| // ==/UserScript== | |
| const title = document.querySelector('#sub_head > h2').innerText | |
| const selectInput = document.querySelector('#eopjong_gbcd') | |
| const option = () => document.querySelector('#eopjong_cd13') | |
| if (!option()) { | |
| selectInput.value = '1' | |
| selectInput.dispatchEvent(new Event('change')) | |
| option().click() | |
| if (title === '채용공고.') { | |
| document.querySelector('.icon_search > a').click() | |
| } else { | |
| document.querySelector('#eopche_nm').focus() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment