Skip to content

Instantly share code, notes, and snippets.

@mu-hun
Last active October 24, 2025 04:50
Show Gist options
  • Save mu-hun/e7deb86c0600dfc4539ee075ff27e229 to your computer and use it in GitHub Desktop.
Save mu-hun/e7deb86c0600dfc4539ee075ff27e229 to your computer and use it in GitHub Desktop.
병무청 병역일터 검색
// ==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