Skip to content

Instantly share code, notes, and snippets.

@Verssae
Last active June 21, 2024 08:32
Show Gist options
  • Save Verssae/31aa44bd754280262f8894828e3b3ac0 to your computer and use it in GitHub Desktop.
Save Verssae/31aa44bd754280262f8894828e3b3ac0 to your computer and use it in GitHub Desktop.
한양대학교 인권/폭력예방 교육시스템 스킵 스크립트
/**
[강의 영상 스킵]
1. 재생버튼을 눌러 한양대 로딩 영상이 끝나고(약 4초) 강의가 재생된 후 F12 버튼을 눌러 개발자 콘솔을 연 뒤 console 탭으로 이동한다.
2. 아래 스크립트를 붙여넣는다.
3. 사이트에서 나갈 것이냐고 묻는 창이 뜨면 '나가기'를 누른다.
4. 다시 영상이 로드되면 재생 버튼을 눌러 재생하고 영상 끝으로 컨트롤 버튼을 움직여 영상 시청을 완료한다.
**/
let sec = 10000; // 영상 길이(초)보다 길게
const url = document.getElementById('iframeid').src;
const [startUrls, endUrls, ...urlParts] = url.split('&');
const startUrl = `${startUrls.split('=')[0]}=${sec}`;
const endUrl = `${endUrls.split('=')[0]}=${sec}`;
const magicUrl = [startUrl, endUrl, ...urlParts].join('&');
document.getElementById('iframeid').src = magicUrl;
/**
[퀴즈 스킵]
1. '평가하기'를 눌러 퀴즈 창을 띄운다.
2. F12를 눌러 개발자 콘솔을 열고 console 탭으로 이동한다.
3. 아래 스크립트를 붙여넣는다.
4. '이수하셨습니다!'
**/
SetExamAfeter();
let answers = Array.from({length: questionCountInExam}, (x,i) => document.getElementById("qustionCorrectNo_" + i).value);
SetExamBefore();
for (let i=0; i<questionCountInExam; i++) {
let ls = document.getElementsByName(`qustionAnswerList[${i}].Answer`);
console.log(ls);
ls[answers[i]-1].checked = true;
}
document.getElementById("Exam_btnSave").click();
@gnsals0904
Copy link

amazing project!

@YunSungJu
Copy link

He saves my life

@PurpleBananass
Copy link

이 시대의 진정한 영웅이시군요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment