4 ms·
Fantastic encapsulation and commentary on the modern web and attentionspace. There's certainly better ways to do this, but here's one way to automate 1000 clic
by xnx 2y ago
Fantastic encapsulation and commentary on the modern web and attentionspace.
There's certainly better ways to do this, but here's one way to automate 1000 clicks from the console:
for (let i = 0; i < 1000; i++) {
document.querySelector('button.main-btn-pretty').click();
}
Automating this art piece probably also says ... something.
- jetbalsa 2y agoa fun way is to resize the window to be super tiny and the DVD Bounce really gets going into the millions
- xnx 2y agoGood one. Sounds like a geiger counter.
- Imustaskforhelp 2y agowoah! great job
- yu3zhou4 2y agoInfinite version: let button = document.getElementsByClassName('main-btn'); let clicker = setInterval(() => button[0].click(), 1); To stop, use this: window.clearInterval(clicker);
- cainxinth 2y ago> Fantastic encapsulation and commentary on the modern web and attentionspace. This is why I quit Hearthstone even though I never spent a dime on it. I realized I had been habituated into playing it every day. I started feeling like a lab rat trained to push a button for a reward.
- malux85 2y agoHahaha yeah! Me too! Good thing I escaped that! Now back to my coding job, I really have to focus and push enough of these buttons or I’ll get fired and won’t get my pay
- praptak 2y ago...now back to my hourly check of HN frontpage. Gotta be diligent and keep up with the industry news.
- wiseowise 2y agoAre you me?
- 01HNNWZ0MV43FF 2y agoLeast we're getting paid for those buttons
- xnx 2y agoThat's one of the things that makes Stimulation Clicker so good, by being exposed to the most extreme version, it helps you identify other engineered attention grabbers in everyday life.
- pests 2y ago> I realized I had been habituated into playing it every day So like a hobby? Did you have fun playing it?
- herghost 2y agoCookie Clicker taught me this about Destiny and Destiny 2 as well. I got a lot of enjoyment out of those games - and they were partly the backdrop to socialising online with IRL friends who didn't live close to me - but at some point the absurdity of them became too obvious and we stopped. "moved on" - to Call of Duty.
- mtremsal 2y ago> This is why I quit Hearthstone even though I never spent a dime on it. Good news, you now have time to pick up The Bazaar instead! (joke aside, it's quite fun, a lot more chill, and not nearly as exploitative as Hearthstone)
- ipsum2 2y agoRunning it async will prevent the main screen from lagging: (async () => { const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms)); for (let i = 0; i < 10000; i++) { document.getElementsByClassName('main-btn')[0].click(); await delay(5); // 5 ms sleep } })();
- i8i76876 2y ago7i67i76i76i76i798778kiki87778uuuuuuuujjjjjjjkkkkkkkk
- hombre_fatal 2y agoIf you're already using setTimeout, why not just use it directly? function clickLoop() { document.querySelector('.main-btn').click(); setTimeout(clickLoop, 50) }
- jampekka 2y agoThat's an infinite loop.
- deleted 2y ago[deleted]
- akx 2y agoBreakable by `clickLoop = null`.
- eterm 2y agoWhat's all this overengineering and waste creating timeouts? Why not just use setInterval? let interval = setInterval(() => document.querySelector('.main-btn').click(), 50) Then clearInterval(interval) to stop
- hombre_fatal 2y agoHow could you be so wasteful traversing the DOM tree every time to find .main-btn? Shame on you.
- kmoser 2y agoYou could shorten it by using $('.main-btn').click()
- inglor 2y agoAutomate that bitcoin! ``` setInterval(() => { let max = 100; while(max-->0) { let price = +document.querySelector(".last-price").textContent.trim().slice(1).replace(",","").split("\n")[0]; if (price > 20000) { document.querySelector(".stock-sell").click(); } else if (price < 10000) { document.querySelector(".stock-buy").click(); } else { break; } } }) ```
- declan_roberts 2y agoAutomating it is the most fun part of these silly games. Here's a bash script to do it on mac (brew install clickclick first) while true; do cliclick c:. done
- zemo 2y ago> Automating this art piece probably also says ... something. if you do that you're not really experiencing it
- mkoryak 2y agoTo everyone who is doing this: The only person you are cheating is yourself!!!
- taberiand 2y agoShort-circuiting a clicker game (and all other forms of nullifying Skinner boxes) is self-care.
- narrator 2y agoJust go into developer mode and just break on a line like so: r.sps && r.purchased && this.addStimulation(r.sps \* n, r.id) and run this.addStimulation(10000000000,r.id) and resume.
- karpatic 2y agoI did the same exact thing and then wanted to post it into the groupchat then see this. 1000 iterations too! Why are we like this XD