Last active
November 16, 2024 12:49
-
-
Save Jehong-Ahn/729d7d6b3f77b95240dc41c50c0087cd 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 휴넷 HRD 자동진행 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 휴넷 HRD 자동진행 | |
// @author JH | |
// @match https://study.hunet.co.kr/contents/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=hunet.co.kr | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
console.log('Injected'); | |
setTimeout(function() { | |
console.log('Listener registered.'); | |
window.myVideo.addEventListener('ended', () => { | |
console.log('move_next'); | |
move_next(); | |
}); | |
}, 2000); | |
})(); |
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 휴넷 의무교육 자동진행 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 한 차시가 끝나면 학습창을 새로 열어주세요. '다음 차시 바로가기'하면 자동처리 안됩니다. | |
// @author JH | |
// @match https://study.hunet.co.kr/Study/Module/Main.aspx* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=hunet.co.kr | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
console.log('Injected'); | |
setTimeout(function() { | |
// 영상이 없는 페이지는 바로 진행 | |
if ( ! window.jwplayer('player').onComplete ) { | |
window['btn-next'].click(); | |
} | |
// 영상이 있는 페이지는 리스너 등록 | |
else { | |
window.jwplayer('player').onComplete(event => { | |
console.log('move_next'); | |
window['btn-next'].click(); | |
}); | |
console.log('Listener registered.'); | |
} | |
}, 2000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment