When done, don't forget to click the "back" arrow in the upper left corner. There is another checkbox event (hurdles...)<p>In a weird way this reminds me of the old 80s "epyx" sports game which seemed to involve typeing keys as fast as you can.<p><a href="https://en.wikipedia.org/wiki/Summer_Games_(video_game)" rel="nofollow">https://en.wikipedia.org/wiki/Summer_Games_(video_game)</a>
My "speedrun":<p><pre><code> var simulateClick = function (elem) {
// Create our event (with options)
var evt = new MouseEvent('click', {
bubbles: true,
cancelable: true,
view: window
});
// If cancelled, don't dispatch our event
var canceled = !elem.dispatchEvent(evt);
};
var run = () => {
var el = document.querySelector('input[type=checkbox]:not(:checked)')
simulateClick(el)
}
setInterval(run, 100)</code></pre>
<p><pre><code> $('.readyButton').click(); setTimeout(()=> [...document.querySelectorAll('input[type="checkbox"]')].map(cb => cb.click()), 3000)
</code></pre>
This gives me 0.143 in Safari which is just a proof that DOM is freaking slow haha!
Some of us have our stash of ~10 domain names for our side projects (that we renew year after year, with some embarrassment). Tim's got 90 linked from <a href="https://theuselessweb.com/" rel="nofollow">https://theuselessweb.com/</a><p>I wonder if he renews them on the cheap somehow, either way there are some really funny ones in there
Are you intentionally setting random tabindex values just to mess with keyboard users? I would like to suggest adding "Checkbox Paralympics" version, where keyboard users could compete too.
I decided to use Python instead of JS for this:<p><pre><code> import pyautogui as m
from fastgrab import screenshot
m.PAUSE = 0
while 1:
x, y = m.position()
r, g, b, _ = screenshot.Screenshot().capture((x, y, 1, 1))[0][0]
if (r, g, b) in ((50, 205, 50), (127, 224, 127)):
break
m.moveRel(-35, 105)
for _ in range(27):
m.click()
m.moveRel(23, 0)
m.click()
</code></pre>
My record is 0.03 in FF<p>EDIT: 0.02 in Chromium
This basically told me I need a new / different trackball. The coefficient of static friction is too high in my current one to do this accurately - I need more force to start the ball rolling than I need to move to the next checkbox.<p>I'm using a Sanwa Supply one now<p>Looks like it might be a ploopy with BTS instead of their rollerbearings.
Kind of like minesweeper, but without the strategy part?<p>Because once a minesweeper addict has reached a certain base level of skill, the strategy part stops to be about where the mines are, it becomes all about reordering the click queue for speed. (don't ask me how I know)
On my tablet the slightes movement of the pen causes firefox to select stuff instead of switching the checkbox. Causes extreme slow-down.<p>Under normal circumstances I don't like websites to try to mess with selection, copynpaste, ... but in this case it would be both helpful and justified.
I think this demonstrates that:<p>1) the hit area of native checkboxes should be larger, and<p>2) fieldsets with checkboxes should come with a native "Toggle All" button