Hacker News new | ask | show | jobs
by narrowtux 2543 days ago
[SPOILER] since you have to tick all the boxes on the captcha page, this piece of code is actually faster to type in than to click everything:

    document.querySelectorAll(".icon.icon-check.checkbox__check").forEach(span => span.click())
1 comments

More concise to use an attribute selector: 'input[type=checkbox]'.
IIRC, the checkboxes weren't actual checkboxes. Yet another thing you can do wrong in UI.