Skip to content

Instantly share code, notes, and snippets.

@nnnlog
Created September 17, 2020 00:26
Show Gist options
  • Save nnnlog/bd2801fabc60042191c228f78a908123 to your computer and use it in GitHub Desktop.
Save nnnlog/bd2801fabc60042191c228f78a908123 to your computer and use it in GitHub Desktop.
클래스카드
let wait = async(s) => {
return new Promise(r => setTimeout(() => r(), s * 1000));
};
(async () => {
while(parseInt(document.querySelector(".unknown_count").innerText)) {
await wait(5);
document.querySelectorAll(".card-quest-item.cc-table.middle.fill-parent-w.back-quest.answer")[parseInt(document.querySelector(".known_count").innerText)].click();
}})();
let wait = async() => {
return new Promise(r => setTimeout(() => r(), 4000));
};
while(parseInt(document.querySelector(".unknown_count").innerText)) {
document.querySelectorAll("input.form-control.input-lg.input-answer.m-center.w-90p")[(parseInt(document.querySelector(".known_count").innerText)) * 2 + 1].value = slider.find('.CardItem.current').find('.card-bottom .spell-answer .spell-content').text().trim();
document.querySelector("a.btn.btn-xl.btn-primary.shadow.w-250.btn-confirm").click()
await wait();
}
let wait = async(s) => {
return new Promise(r => setTimeout(() => r(), 1000 * s));
};
while(parseInt(document.querySelector(".unknown_count").innerText)) {
document.getElementById("wrapper-learn").click();
await wait(1.5);
document.querySelector("a.btn.btn-xl.btn-success.shadow.w-250.btn-short-change-card").click();
await wait(2);
}
@jongtae0509
Copy link

최고입니다

@nineteeneightyfour1219
Copy link

대.단.하.다

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