Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 661 Bytes

File metadata and controls

27 lines (21 loc) · 661 Bytes

签到

如网页源码所示,填写错误时会跳转到 /pass?=false,正确时会跳转到 /pass?=true

function submitResult() {
    const inputs = document.querySelectorAll('.input-box');
    let allCorrect = true;

    inputs.forEach(input => {
        if (input.value !== answers[input.id]) {
            allCorrect = false;
            input.classList.add('wrong');
        } else {
            input.classList.add('correct');
        }
    });

    window.location = `?pass=${allCorrect}`;
}

所以直接在地址栏修改 pass 参数为 true 或手动发送 GET 请求就好:

GET /?pass=true HTTP/1.1