Skip to content

Instantly share code, notes, and snippets.

@noirmist
Forked from kde713/safepass.js
Created August 28, 2019 06:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noirmist/96163411590b9b8171c7e307152cb12b to your computer and use it in GitHub Desktop.
Save noirmist/96163411590b9b8171c7e307152cb12b to your computer and use it in GitHub Desktop.
국민대학교 안전교육 이수 스크립트 (2019.03.11 동작확인)
var currentPage = nowPageNum;
function goNextPage() {
if (currentPage <= totalPageNum) {
opener.PageMove2019AfterVersion(currentPage);
console.log(`${currentPage} 페이지를 수강완료했습니다.`);
currentPage += 1;
setTimeout(function() {
goNextPage();
}, 1000);
} else {
alert('강의 수강이 완료되었습니다!');
}
}
function runKmuMacro() {
console.log(`현재 ${currentPage} 페이지를 수강중입니다.`);
setTimeout(function () {
goNextPage();
}, 1000)
}
runKmuMacro();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment