3 ms·
for (const input of document.querySelectorAll('input[type=checkbox]')) { if (!input.checked) { input.click(); await new Promise(res => setTimeou
by paulddraper 2y ago
for (const input of document.querySelectorAll('input[type=checkbox]')) {
if (!input.checked) {
input.click();
await new Promise(res => setTimeout(res, 250));
}
}
- n42 2y agoor the defensive maneuver window.addEventListener("change", function(e) { if (e.target instanceof HTMLInputElement && !e.target.checked) { e.target.click(); } });