r/thebutton • u/Yenraven 59s • Apr 01 '15
This little script entered into your address bar will automatically press the button when there is less than 1 second left on the clock.
javascript:var secs10=0, secs1=1; setInterval(function(){if(Number($('#thebutton-s-10s').text()) <= secs10){if(Number($('#thebutton-s-1s').text()) <= secs1){$('#thebutton').trigger('click');}}}, 100);It will only work as long as you stay on the page. If you read a comment or something, you will have to reenter the script when you go back to the button page.
Edit: If your client loses sync with the server, this script could click the button prematurely, which is what hapend to me last night. User beware!
8
Upvotes
2
u/tardisBlueEyes non presser Apr 02 '15
what is the latency difference, if any, between:
and
6
u/[deleted] Apr 02 '15 edited Apr 02 '15
This is affected by lag. I posted this before but realized it ineffectiveness. This method is better.
You can view your tokens in chrome network inspect. Filter by WebSockets. Also unlock the button.
6
u/NewelSea non presser Apr 04 '15
Of course it wouldn't work properly.
Never trust a 59 to do the job.
2
u/steve_the_woodsman 59s Apr 02 '15
direct inject, son
1
u/Metoray Apr 03 '15
This backfired on me, should have probably read the disclaimer
1
u/grWEn non presser Apr 03 '15
tampermonkey can help you to automatically runs the script when on the /r/thebutton https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en