Udemy 번역 스크립트
- 크롬 번역 활성화
- 개발자도구(
F12
) 실행 console
진입- 스크립트 실행
setInterval(() => {
const toEl = document.querySelector('div[data-purpose="captions-cue-text"]');
const fromEl = document.querySelector('p[data-purpose="transcript-cue-active"] span'); if (toEl && fromEl) {
const currentText = fromEl.innerText;
if (toEl.innerText !== currentText) {
toEl.innerText = currentText;
}
}
}, 200);