5 ms·
tried doing: ``` $$('input[type=checkbox]').forEach(elt => elt.click()); ``` and got an alert that said "CHILL LOL". fun site
by ssalka 2y ago
tried doing:
```
$$('input[type=checkbox]').forEach(elt => elt.click());
```
and got an alert that said "CHILL LOL". fun site
- misiek08 2y agoYou need to directly send 42["toggle.... via WebSocket. Of course you need to check which are checked before if you want to clear instead of reverse.
- beretguy 2y agoHmm… Is there a way to trick it to accept js that checks all boxes?
- recursive 2y agoYes
- ryandrake 2y agoI trust this guy knows how, just by his username.
- Recursing 2y agoHN usernames are not that hard to get
- em-bee 2y agomaybe he is campaigning for the reintroduction of cursive script in schools
- paulddraper 2y agoIDK if the problem is JS or the rate
- misiek08 2y agoThe problem is you need to send 467k (current count of checked boxes) websocket messages and backend(s) are already dying for ~1 hour. Good luck with that, I only played for some time by clearing first 1000 boxes every few seconds. Even after you send those 467k messages they need to be sent to (I assume) few thousands browsers each, so you need to wait for 467M messages to go through :D
- 999900000999 2y agoTime to write a Playwright script. const { chromium } = require('playwright'); (async () => { // Launch the browser const browser = await chromium.launch({ headless: false }); const context = await browser.newContext(); const page = await context.newPage(); // Navigate to your page await page.goto('https://example.com'); // Replace with the actual URL // Click all checkboxes await page.$$eval('input[type=checkbox]', checkboxes => { checkboxes.forEach(checkbox => checkbox.click()); }); // Close the browser await browser.close(); })(); I'm proud of myself for getting the chill alert without even running a script, just frantically tapping with my fingers!
- hk1337 2y agodocument.querySelectorAll("input[type=checkbox]").forEach(i => { i.checked = false; }); seems to work for a second. no alert.
- Scarblac 2y agoPresumably that skips the code that sends the event to the backend?