신규 버전이 나왔다. 2023.12.12 19:00 이후면 아래링크로 ㄱ
https://arca.live/b/dunfa/93862778
미리보기
사용법
0. 던파 로그인
1. https://df.nexon.com/mypage/character/weekly 주간 던파 페이지에 접속
(네이버 계정 -> https://df.game.naver.com/mypage/character/weekly)
2. 아래에 제공된 코드를 복사
3. 주간 던파 페이지에서 F12 를 눌러 '개발자도구'를 오픈
4. 콘솔에 코드 붙여넣고 Enter
코드
const year = new Date().getFullYear() const downYear = year - 1 const unit = ['', '', '', '개', '회', '회', '회', '회', '회', '회'] const mem = [] let next = '' async function getWeek(startDate='') { const host = location.origin?.includes('naver') ? 'df.game.naver.com' : 'df.nexon.com' const resp = await fetch(`https://${host}/mypage/character/weekly/fetch?date=${startDate}`) return await resp.json() } const absolute = (value) => value <= 0 ? 0 : value || 0 while (next?.includes(year) || !next) { let response = await getWeek(next) next = response.body.nextDate || '2022' console.log(next) mem.push(response.body.weeklyItems) } const result = mem.flat().reduce((prev, cur) => ({ level: prev.level + absolute(cur.level), fatigue: prev.fatigue + absolute(cur.fatigue), epic: prev.epic + absolute(cur.epic), ispins: prev.ispins + absolute(cur.ispins), bakal: prev.bakal + absolute(cur.bakal), dimension: prev.dimension + absolute(cur.dimension), arbitrator: prev.arbitrator + absolute(cur.arbitrator), duskyisland: prev.duskyisland + absolute(cur.duskyisland), }), { level: 0, fatigue: 0, epic: 0, ispins:0, bakal: 0, dimension:0, arbitrator: 0, duskyisland: 0 }); cloned = document.querySelector('.dfweek_daily dl').cloneNode(true) cloned.querySelector('dt b').textContent = `${year}년 던말정산` cloned.querySelector('dt span').textContent = `집계기간: ${year}년 한해` cloned.querySelector('dt b').style = 'font-weight: 900' Object.values(result).forEach((item, index) => { const idx = index + 1 cloned.querySelector(`dd p:nth-of-type(${idx}) b`).textContent = `${item}${unit[idx]}` }) Array.from(document.querySelector('.dfweek_daily').children).forEach(child => child.remove()) document.querySelector('.dfweek_daily').insertAdjacentElement('afterbegin', cloned) |
개발자도구 콘솔창
붙여넣기
결과
히스토리
햌잉 기술 쓰려고 했는데 이거 Google 이 2020년에 기본값 바꿔서 막아놨네 어차피 넥슨이 허술하게 만들어두긴 했는데 이거 삽질하기 귀찮아서
확장프로그램으로 할까하다가 또 검수 신청하기자니 신규로 하면 너무느리고 던파 세라조회에 추가하자니 디자인이 귀찮더라
그래서 걍 코드만 만들어옴
중재자는 추가된게 23.11.16 이라고 한다. 낮은게 정상이다.
높은놈이 ㅁㅊ놈이다.
요즘 던파 오던을 보니 아마 이거로는 보내주지도 않을듯
개발로는 언제 부턴가 좀 박해짐 (내생각엔 커뮤랑 공홈커뮤 모니터링 안하는듯)